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

Method seek

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

Source from the content-addressed store, hash-verified

773 ### Positioning ###
774
775 def seek(self, pos, whence=0):
776 new_position = self.raw.seek(pos, whence)
777 if new_position < 0:
778 raise OSError("seek() returned an invalid position")
779 return new_position
780
781 def tell(self):
782 pos = self.raw.tell()

Callers

nothing calls this directly

Calls 1

seekMethod · 0.45

Tested by

no test coverage detected