Skip to content

locals() return copy of locals dictionary #1508

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

Merged
merged 2 commits into from
Oct 11, 2019

Conversation

HyeockJinKim
Copy link
Contributor

Return copy of locals so that local variables
does not change even if locals() values is changed

Fixes #1356

Return copy of locals so that local variables
does not change even if locals() values is changed

Fixes RustPython#1356
@windelbouwman
Copy link
Contributor

Nicely done!

@windelbouwman windelbouwman merged commit ef25264 into RustPython:master Oct 11, 2019
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.

locals() dict share actual local variable
2 participants