Skip to content

Add max and min builtins to safe Python execution#136

Merged
jph00 merged 1 commit intomainfrom
max-min
Feb 19, 2026
Merged

Add max and min builtins to safe Python execution#136
jph00 merged 1 commit intomainfrom
max-min

Conversation

@ncoop57
Copy link
Copy Markdown
Contributor

@ncoop57 ncoop57 commented Feb 17, 2026

Adds max and min functions to the allowed builtins in the restricted Python
execution environment. When chatting about why this isn't on by default with solve it, It said because of the key argument being able to take callables. However, with restricted Python, it will prevent any callable that's not in our allowed list anyway, so I think it should be safe.

@ncoop57 ncoop57 added the enhancement New feature or request label Feb 17, 2026
@ncoop57 ncoop57 requested a review from jph00 February 17, 2026 13:25
@jph00 jph00 merged commit bc6a0ed into main Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants