tell() -> int. Current file position. Can raise OSError for non seekable files.
(self)
| 1760 | return os.lseek(self._fd, pos, whence) |
| 1761 | |
| 1762 | def tell(self): |
| 1763 | """tell() -> int. Current file position. |
| 1764 | |
| 1765 | Can raise OSError for non seekable files.""" |
| 1766 | self._checkClosed() |
| 1767 | return os.lseek(self._fd, 0, SEEK_CUR) |
| 1768 | |
| 1769 | def truncate(self, size=None): |
| 1770 | """Truncate the file to at most size bytes. |