yuce / pyswip

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

Add abort functionality and handle exception in cleanup #150

Closed g-gemignani closed 1 month ago

g-gemignani commented 1 year ago

In this PR, I have added the method for aborting a query. Also, I have added the handling of an exception that popped up on our side during cleanup.