RestrictedPython icon indicating copy to clipboard operation
RestrictedPython copied to clipboard

support for 'min'

Open jsmith173 opened this issue 1 year ago • 1 comments

How the 'min' function can be supported?

I've studied the ZopeGuards.py but I'm lost a bit. The 'guard' function uses other objects from AccesControl. Is it possible to provide a very simple 'guard' function?

jsmith173 avatar Mar 21 '24 09:03 jsmith173

See https://restrictedpython.readthedocs.io/en/latest/usage/basic_usage.html Create a local copy of safe_builtins and add the min function.

icemac avatar Mar 22 '24 16:03 icemac