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

Method rewind

Lib/gzip.py:420–425  ·  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

418 return self.fileobj.fileno()
419
420 def rewind(self):
421 '''Return the uncompressed stream file position indicator to the
422 beginning of the file'''
423 if self.mode != READ:
424 raise OSError("Can't rewind in write mode")
425 self._buffer.seek(0)
426
427 def readable(self):
428 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