(self, fnname)
return fn
Retrieve function by name.
Retrieve function by name.
Retrieve function by name .
def get(self, fnname):
        """Retrieve function by name."""
        # append sigil, if missing
        fnname = self._memory.complete_name(fnname)
        # parse/evaluate arguments
        try:
            fn = self._fn_dict[fnname]
        except KeyError:
            raise error.BASICError(error.UNDEFINED_USER_FUNCTION)
        if fn is None:
            raise error.BASICError(error.STX)
        return fn
def get ( self , fnname ) : # append sigil, if missing fnname = self . _memory . complete_name ( fnname ) # parse/evaluate arguments try : fn = self . _fn_dict [ fnname ] except KeyError : raise error . BASICError ( error . UNDEFINED_USER_FUNCTION ) if fn is None : raise error . BASICError ( error . STX ) return fn