mathematical-expressions-parser icon indicating copy to clipboard operation
mathematical-expressions-parser copied to clipboard

Minor bug ? Undefined variable.

Open bkpgh opened this issue 2 years ago • 0 comments

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...

bkpgh avatar Mar 01 '22 03:03 bkpgh