RestrictedPython
RestrictedPython copied to clipboard
support for 'min'
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?
See https://restrictedpython.readthedocs.io/en/latest/usage/basic_usage.html
Create a local copy of safe_builtins and add the min function.