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

Method rewind

Lib/gzip.py:422–427  ·  view source on GitHub ↗

Return the uncompressed stream file position indicator to the beginning of the file

(self)

Source from the content-addressed store, hash-verified

420 return self.fileobj.fileno()
421
422 def rewind(self):
423 '''Return the uncompressed stream file position indicator to the
424 beginning of the file'''
425 if self.mode != READ:
426 raise OSError("Can't rewind in write mode")
427 self._buffer.seek(0)
428
429 def readable(self):
430 return self.mode == READ

Callers 2

test_readMethod · 0.45
test_copyMethod · 0.45

Calls 1

seekMethod · 0.45

Tested by 2

test_readMethod · 0.36
test_copyMethod · 0.36