You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 26, 2025. It is now read-only.
This expression perse without problem
parser.parse('-2*3').evaluate({})
This expression crash
parser.parse('2*-3').evaluate({})
_IndexError Traceback (most recent call last)
in
----> 1 parser.parse('2*-3').evaluate({})
~/Library/Python/3.7/lib/python/site-packages/py_expression_eval/init.py in evaluate(self, values)
118 elif type_ == TOP2:
119 n2 = nstack.pop()
--> 120 n1 = nstack.pop()
121 f = self.ops2[item.index_]
122 nstack.append(f(n1, n2))
IndexError: pop from empty list_
eval('2*-3') works on python3.7