PySwip is a Python - SWI-Prolog bridge enabling to query SWI-Prolog in your Python programs. It features an (incomplete) SWI-Prolog foreign language interface, a utility class that makes it easy querying with Prolog and also a Pythonic interface.
MIT License
464
stars
97
forks
source link
Avoid AttributeError with PL_version_info in swipl <= 8.4.2 #154
In older versions of libswipl.so, pyswip produced this error:
This happened on my system with libswipl 8.4.2. We can avoid this by using
hasattr
instead of comparing the property to None.