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

Method seek

tools/python-3.11.9-amd64/Lib/_pyio.py:1322–1327  ·  view source on GitHub ↗
(self, pos, whence=0)

Source from the content-addressed store, hash-verified

1320 return _BufferedIOMixin.tell(self) + len(self._write_buf)
1321
1322 def seek(self, pos, whence=0):
1323 if whence not in valid_seek_flags:
1324 raise ValueError("invalid whence value")
1325 with self._write_lock:
1326 self._flush_unlocked()
1327 return _BufferedIOMixin.seek(self, pos, whence)
1328
1329 def close(self):
1330 with self._write_lock:

Callers

nothing calls this directly

Calls 2

_flush_unlockedMethod · 0.95
seekMethod · 0.45

Tested by

no test coverage detected