-
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
Atom names changed when querying lists #65
Comments
Hello, A good starting point is to format your result, as seen at https://github.com/targodan/jupyter-swi-prolog/blob/master/jswipl/swipl.py.
returns: @yuce maybe this should be included on pyswip, or be better documented. Best, |
Thanks for this code. But it returns a string, that looks like a Python list in its content, but it's not a Python list. I would expect it to return a list of strings. I.e., |
Based on @MitsiCash 's answer, I'm using this code:
I assume it might help others as well, @yuce , please incorporate this, or something similar. Thanks |
I'm Using Python 3.7.4, Pyswip from PIP.
There seems to be a problem with Prolog atom names in lists.
Prolog code:
Python code:
returns:
[{'X': [Atom('413701')]}]
If I change
[black].
toblack
, it works OK.The text was updated successfully, but these errors were encountered: