(self, size, err)
Check if sufficient free memory is avilable, raise error if not.
Check if sufficient free memory is avilable, raise error if not.
Check if sufficient free memory is avilable raise error if not .
def check_free(self, size, err):
        """Check if sufficient free memory is avilable, raise error if not."""
        if self._get_free() <= size:
            self._collect_garbage()
            if self._get_free() <= size:
                raise error.BASICError(err)
def check_free ( self , size , err ) : if self . _get_free ( ) <= size : self . _collect_garbage ( ) if self . _get_free ( ) <= size : raise error . BASICError ( err )