mathematical-expressions-parser
mathematical-expressions-parser copied to clipboard
Minor bug ? Undefined variable.
Hello!
In parser.py at lines 50 & 51:
if self.vars.get(constant) != None: raise Exception("Cannot redefine the value of " + var)
I think 'var' should be 'constant' as var is undefined at that point.
No great code-scanning on my part; hits you in the face if you use an IDE with code-checking like Spyder...