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

Method seek

Lib/mailbox.py:2048–2053  ·  view source on GitHub ↗

Change position.

(self, offset, whence=0)

Source from the content-addressed store, hash-verified

2046 return self._pos
2047
2048 def seek(self, offset, whence=0):
2049 """Change position."""
2050 if whence == 1:
2051 self._file.seek(self._pos)
2052 self._file.seek(offset, whence)
2053 self._pos = self._file.tell()
2054
2055 def close(self):
2056 """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