clipspy-1.0.0/clips/facts.py
def assert_string(self, string: str) -> (ImpliedFact, TemplateFact):
        """Assert a fact as string."""
        fact = lib.AssertString(self._env, string.encode())

        if fact == ffi.NULL:
            raise CLIPSError(
                self._env, code=lib.GetAssertStringError(self._env))

        return new_fact(self._env, fact)
Assert a fact as string.
Assert a fact as string.
Assert a fact as string .
def assert_string(self, string: str) -> (ImpliedFact, TemplateFact):
        fact = lib.AssertString(self._env, string.encode())
        if fact == ffi.NULL:
            raise CLIPSError(
                self._env, code=lib.GetAssertStringError(self._env))
        return new_fact(self._env, fact)
def assert_string ( self , string : str ) -> ( ImpliedFact , TemplateFact ) : fact = lib . AssertString ( self . _env , string . encode ( ) ) if fact == ffi . NULL : raise CLIPSError ( self . _env , code = lib . GetAssertStringError ( self . _env ) ) return new_fact ( self . _env , fact )
Assert a fact as string.
Assert a fact as string .
"""Assert a fact as string."""
self
string
str