tell() -> int. Current file position. Can raise OSError for non seekable files.
(self)
| 1781 | return os.lseek(self._fd, pos, whence) |
| 1782 | |
| 1783 | def tell(self): |
| 1784 | """tell() -> int. Current file position. |
| 1785 | |
| 1786 | Can raise OSError for non seekable files.""" |
| 1787 | self._checkClosed() |
| 1788 | return os.lseek(self._fd, 0, SEEK_CUR) |
| 1789 | |
| 1790 | def truncate(self, size=None): |
| 1791 | """Truncate the file to at most size bytes. |