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

Method seek

tools/python-3.11.9-amd64/Lib/zipfile.py:768–776  ·  view source on GitHub ↗
(self, offset, whence=0)

Source from the content-addressed store, hash-verified

766 return self._pos
767
768 def seek(self, offset, whence=0):
769 with self._lock:
770 if self._writing():
771 raise ValueError("Can't reposition in the ZIP file while "
772 "there is an open writing handle on it. "
773 "Close the writing handle before trying to read.")
774 self._file.seek(offset, whence)
775 self._pos = self._file.tell()
776 return self._pos
777
778 def read(self, n=-1):
779 with self._lock:

Callers

nothing calls this directly

Calls 2

seekMethod · 0.45
tellMethod · 0.45

Tested by

no test coverage detected