def seek(self, offset, whence=0):
        """Move read/write pointer in 'file'."""
        self._check_open_file()
        if not self._append:
            self._io.seek(offset, whence)
        else:
            self._read_seek = offset
            self._read_whence = whence
        if not self.is_stream:
            self.flush()
def seek ( self , offset , whence = 0 ) : self . _check_open_file ( ) if not self . _append : self . _io . seek ( offset , whence ) else : self . _read_seek = offset self . _read_whence = whence if not self . is_stream : self . flush ( )
Move read/write pointer in 'file'.