MCPcopy Index your code
hub / github.com/python/cpython / seek

Method seek

Lib/_pyio.py:1316–1321  ·  view source on GitHub ↗
(self, pos, whence=0)

Source from the content-addressed store, hash-verified

1314 return _BufferedIOMixin.tell(self) + len(self._write_buf)
1315
1316 def seek(self, pos, whence=0):
1317 if whence not in valid_seek_flags:
1318 raise ValueError("invalid whence value")
1319 with self._write_lock:
1320 self._flush_unlocked()
1321 return _BufferedIOMixin.seek(self, pos, whence)
1322
1323 def close(self):
1324 with self._write_lock:

Callers

nothing calls this directly

Calls 2

_flush_unlockedMethod · 0.95
seekMethod · 0.45

Tested by

no test coverage detected