Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for 'min' #275

Open
jsmith173 opened this issue Mar 21, 2024 · 1 comment
Open

support for 'min' #275

jsmith173 opened this issue Mar 21, 2024 · 1 comment
Labels

Comments

@jsmith173
Copy link

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?

@icemac
Copy link
Member

icemac commented Mar 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants