tell() -> int. Current file position. Can raise OSError for non seekable files.
(self)
| 1741 | return os.lseek(self._fd, pos, whence) |
| 1742 | |
| 1743 | def tell(self): |
| 1744 | """tell() -> int. Current file position. |
| 1745 | |
| 1746 | Can raise OSError for non seekable files.""" |
| 1747 | self._checkClosed() |
| 1748 | return os.lseek(self._fd, 0, SEEK_CUR) |
| 1749 | |
| 1750 | def truncate(self, size=None): |
| 1751 | """Truncate the file to at most size bytes. |
no test coverage detected