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
It is also possible to use NumExpr to validate an expression: ne.validate('2*a + 3*b')
which returns None on success or raises an exception on invalid inputs.
However after using the function, I realised this isn't true. For example, this snippet does not raise an exception.
After digging a bit deeper in the numexpr.validate() source code, I realised that the exception object is being returned, and not raised. I'm not sure if that is an issue or not, but I thought the documentation wording was a bit misleading, so I thought to make an issue of this.
Activity
FrancescAlted commentedon Oct 13, 2026
Please consider reading this: https://github.com/pydata/numexpr#warning-funding-is-needed