clipspy-1.0.0/clips/agenda.py
def find_rule(self, name: str) -> Rule:
        """Find a Rule by name."""
        defrule = lib.FindDefrule(self._env, name.encode())
        if defrule == ffi.NULL:
            raise LookupError("Rule '%s' not found" % name)

        return Rule(self._env, name)
Find a Rule by name.
Find a Rule by name.
Find a Rule by name .
def find_rule(self, name: str) -> Rule:
        defrule = lib.FindDefrule(self._env, name.encode())
        if defrule == ffi.NULL:
            raise LookupError("Rule '%s' not found" % name)
        return Rule(self._env, name)
def find_rule ( self , name : str ) -> Rule : defrule = lib . FindDefrule ( self . _env , name . encode ( ) ) if defrule == ffi . NULL : raise LookupError ( "Rule '%s' not found" % name ) return Rule ( self . _env , name )
Find a Rule by name.
Find a Rule by name .
"""Find a Rule by name."""
self
name
str