from pyswip import Prolog
def test():
prolog = Prolog()
prolog.assertz('is_a(a, b)')
result = list(prolog.query("is_a(a,b)"))
print(result)
assert result == [{}]
test() # OK
test() # Fail
--
You received this message because you are subscribed to the Google Groups "pyswip" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyswip+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyswip/bd9f00b3-ca57-48bf-8655-f968d7be9965%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "pyswip" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyswip+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyswip/116148ad-9179-4ae6-a27e-21c7ca4198f7n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyswip/0a701107-5404-4a7b-a84c-4123b3e5cb36n%40googlegroups.com.