ian-andrich / PythonPengines

A Python interface to the Prolog pengines library. Makes it exceedingly easy to call out to SWI-Prolog within Python!
MIT License
12 stars 9 forks source link

README out of date? #19

Closed PaulBrownMagic closed 4 years ago

PaulBrownMagic commented 5 years ago

I believe the README is out of date. To get this to work I had to:

pengine = Pengine(builder=pengine_builder)
# No pengine.create() seems to be automatic now

query = pengine.ask("member(X, [a, b, c])")
pengine.doAsk(query) # Not in README but makes the call

# Do stuff with results

pengine.iAmFinished(query) # If using with destroy=False to prepare for next query

I think this is how to use the Pengine() ?

ian-andrich commented 4 years ago

@PaulBrownMagic Feel free to update the docs.