-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No Support for Dictionaries #50
Comments
I have a monkey-patch for dicts deserialization. Replace these functions in easy.py
... parsing the output is straightforward. However, the bigger problems is that dict seem to misbehave with the .query call, which pyswip implements as:
Asserting this rountine in swipl, we can test it with dicts without data-marshalling concerns:
For the dict query we get:
or more verbosely:
The vanilla swipl query without pyrun should be:
so pyrun has changed the query somewhere and caused A not to be bound to 1 in the goal. :-( Can anyone suggest a fix? |
The output is
This behavior does not match Prolog's. In the SWI-Prolog terminal, the query
yields the result
The text was updated successfully, but these errors were encountered: