def rewind(self, position=0):
        """Set the position of the data buffer cursor to 'position'."""
        if position < 0 or position > len(self._data):
            raise Exception("Invalid position to rewind cursor to: %s." % position)
        self._position = position
def rewind ( self , position = 0 ) : if position < 0 or position > len ( self . _data ) : raise Exception ( "Invalid position to rewind cursor to: %s." % position ) self . _position = position
Set the position of the data buffer cursor to 'position'.