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

Add support for for loops in python interpreter #24429

Merged
merged 1 commit into from
Jun 26, 2023
Merged

Add support for for loops in python interpreter #24429

merged 1 commit into from
Jun 26, 2023

Conversation

sgugger
Copy link
Collaborator

@sgugger sgugger commented Jun 22, 2023

What does this PR do?

For loops are safe to execute in our restricted Python interpreter, this PR adds support for it and adds range in the list of base Python tools allowed.

Fixes #24362

@sgugger sgugger requested a review from LysandreJik June 22, 2023 16:20
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jun 22, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, simple! Thanks for adding that @sgugger!

@sgugger sgugger merged commit 5757923 into main Jun 26, 2023
@sgugger sgugger deleted the for_loop branch June 26, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

For loop support in python interpreter of Transformer agent
3 participants