Bug in pyergo?

3 views
Skip to first unread message

Robert Goldman

unread,
Oct 4, 2025, 11:12:52 AMOct 4
to ErgoAI and XSB Users Forum
I believe I have found a bug in pyergo (I will try to get a MWE as soon as possible):

If I make a query to an all-solutions predicate that returns the empty list, then the binding I get back from pyergo is an ErgoSymbol whose value property is not bound to the empty list, it is bound to the string "[]" -- the string containing the open and closed bracket characters.

This makes the results of a query extremely hard to unpack correctly on the python side,  since we cannot dispatch on the type of the value.

Any suggestions for a work-around?
Reply all
Reply to author
Forward
0 new messages