MCPcopy Index your code
hub / github.com/RustPython/RustPython / seek

Method seek

Lib/mailbox.py:2041–2046  ·  view source on GitHub ↗

Change position.

(self, offset, whence=0)

Source from the content-addressed store, hash-verified

2039 return self._pos
2040
2041 def seek(self, offset, whence=0):
2042 """Change position."""
2043 if whence == 1:
2044 self._file.seek(self._pos)
2045 self._file.seek(offset, whence)
2046 self._pos = self._file.tell()
2047
2048 def close(self):
2049 """Close the file."""

Callers 13

flushMethod · 0.45
_append_messageMethod · 0.45
get_messageMethod · 0.45
get_bytesMethod · 0.45
get_fileMethod · 0.45
_generate_tocMethod · 0.45
_generate_tocMethod · 0.45
get_messageMethod · 0.45
get_bytesMethod · 0.45
_generate_tocMethod · 0.45
_install_messageMethod · 0.45
_readMethod · 0.45

Calls 1

tellMethod · 0.45

Tested by

no test coverage detected