Parser doesn't follow Python negation/exponentiation precendence
>>> parse("-2**2")
Power(-2, 2)
>>> -2**2
-4
To be fair, exponentiation-first doesn't appear to be universal. I think it at least should be documented which way it works.
>>> parse("-2**2")
Power(-2, 2)
>>> -2**2
-4
To be fair, exponentiation-first doesn't appear to be universal. I think it at least should be documented which way it works.