MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / tell

Method tell

tools/python-3.11.9-amd64/Lib/_pyio.py:1743–1748  ·  view source on GitHub ↗

tell() -> int. Current file position. Can raise OSError for non seekable files.

(self)

Source from the content-addressed store, hash-verified

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.

Callers 2

truncateMethod · 0.95
seekableMethod · 0.95

Calls 1

_checkClosedMethod · 0.45

Tested by

no test coverage detected