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

Method seek

tools/python-3.11.9-amd64/Lib/mailbox.py:1970–1975  ·  view source on GitHub ↗

Change position.

(self, offset, whence=0)

Source from the content-addressed store, hash-verified

1968 return self._pos
1969
1970 def seek(self, offset, whence=0):
1971 """Change position."""
1972 if whence == 1:
1973 self._file.seek(self._pos)
1974 self._file.seek(offset, whence)
1975 self._pos = self._file.tell()
1976
1977 def close(self):
1978 """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