Skip to content
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

Operating with dictionaries in pyswip #141

Open
Losbarthos opened this issue Jan 26, 2022 · 0 comments
Open

Operating with dictionaries in pyswip #141

Losbarthos opened this issue Jan 26, 2022 · 0 comments
Milestone

Comments

@Losbarthos
Copy link

Based on this introduction about dictionaries, I just tried the following statement:

from prolog import *

pl = Prolog()
#pl.consult("logic.pl")
print(list(pl.query("X = point{x:1,y:2}.C.")))

expected output:
[{'X': 1, 'C': x}, {'X': 2, 'C': y}]

actual output:
[{'X': ".(Atom('26501')(point, 1, x, 2, y), _3198)", 'C': Variable(101)}, {'X': ".(Atom('26501')(point, 1, x, 2, y), _3198)", 'C': Variable(80)}]

@yuce yuce added this to the v0.3.3 milestone Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants