Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ tell
Method
tell
Lib/_pyio.py:781–785 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
779
return
new_position
780
781
def
tell(self):
782
pos = self.raw.tell()
783
if
pos < 0:
784
raise
OSError(
"tell() returned an invalid position"
)
785
return
pos
786
787
def
truncate(self, pos=None):
788
self._checkClosed()
Callers
1
truncate
Method · 0.95
Calls
1
tell
Method · 0.45
Tested by
no test coverage detected