Lines Matching defs:seek

93     file regardless of the current seek position). In text mode, if encoding is
372 def seek(self, pos, whence=0):
386 self._unsupported("seek")
390 return self.seek(0, 1)
453 If False, seek(), tell() and truncate() will raise OSError.
454 This method may need to do a test seek().
809 def seek(self, pos, whence=0):
810 new_position = self.raw.seek(pos, whence)
812 raise OSError("seek() returned an invalid position")
832 # XXX: Should seek() be used, instead of passing the position
986 def seek(self, pos, whence=0):
988 raise ValueError("seek on closed file")
997 raise ValueError("negative seek position %r" % (pos,))
1229 def seek(self, pos, whence=0):
1235 pos = _BufferedIOMixin.seek(self, pos, whence)
1321 def seek(self, pos, whence=0):
1326 return _BufferedIOMixin.seek(self, pos, whence)
1431 def seek(self, pos, whence=0):
1438 self.raw.seek(self._read_pos - len(self._read_buf), 1)
1439 # First do the raw seek, then empty the read buffer, so that
1440 # if the raw seek fails, we don't lose buffered data forever.
1441 pos = self.raw.seek(pos, whence)
1445 raise OSError("seek() returned invalid position")
1457 # Use seek to flush the read buffer.
1486 self.raw.seek(self._read_pos - len(self._read_buf), 1)
1607 # For consistent behaviour, we explicitly seek to the
1726 def seek(self, pos, whence=SEEK_SET):
2323 # The meaning of a tell() cookie is: seek to position, set the
2407 # (a point where the decoder has nothing buffered, so seek()
2451 def seek(self, cookie, whence=0):
2480 position = self.buffer.seek(0, whence)
2490 raise ValueError("negative seek position %r" % (cookie,))
2493 # The strategy of seek() is to go back to the safe start point
2499 self.buffer.seek(start_pos)
2682 self.seek(0)