get the file descriptor's position relative to the file's beginning

def tell(self):
        "get the file descriptor's position relative to the file's beginning"
        with _fdopen(os.dup(self._fileno)) as fp:
            return fp.tell()