We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
def a(d): locals()['d'] = 3 b = 3 + d print(b) a(21)
The code above generates the following error: (locals dict share actual local variable)
Finished dev [unoptimized + debuginfo] target(s) in 0.11s Running `target/debug/rustpython c.py` 6
24
The text was updated successfully, but these errors were encountered:
If this issue is valid, can I take it?
Sorry, something went wrong.
locals() return copy of locals dictionary
ad3ee2d
Return copy of locals so that local variables does not change even if locals() values is changed Fixes RustPython#1356
43a7245
Successfully merging a pull request may close this issue.
Feature
The code above generates the following error:
(locals dict share actual local variable)
Actual Result
Expected Result
The text was updated successfully, but these errors were encountered: