danthedeckie / simpleeval

Simple Safe Sandboxed Extensible Expression Evaluator for Python
Other
449 stars 85 forks source link

Possible to return function object rather than evaluate? #116

Closed bkpgh closed 1 year ago

bkpgh commented 2 years ago

Can simpleeval return a function object to be evaluated later, perhaps repeatedly, based on current values of component functions and arguments? If not, is this a relatively easy enhancement? Thanks.

TheTechRobo commented 2 years ago

Maybe this could be done by returning a lambda, I doubt this would be too hard...

danthedeckie commented 1 year ago

See #115