lmfit / asteval

minimalistic evaluator of python expression using ast module
https://lmfit.github.io/asteval
MIT License
183 stars 41 forks source link

fix pow int to negative exponent #116

Closed ccomb closed 1 year ago

ccomb commented 1 year ago

Fixed 2**-2 case

ccomb commented 1 year ago

fixes #115

newville commented 1 year ago

@ccomb Thanks for catching this, fixing it, and adding a test!

ccomb commented 1 year ago

@newville hi, is there a timeframe when we can expect a new version 0.9.30 correctly parsing common strings such as 10**-3 ?

newville commented 1 year ago

@ccomb Thanks for the reminder, I will push 0.9.30 in a few days.

To be clear, this is a relatively small change compared to other recent changes -- mostly adding capabilities, and some documentation changes are still needed for those changes.

newville commented 1 year ago

@ccomb 0.9.30 is now released, with this fix

ccomb commented 1 year ago

\o/ Thanks a lot !!