-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
gh-113939: Frame clear, clear locals #113940
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
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5010796
Frame clear, clear locals
albertz aa78bdc
DELETE_FAST: clear f_locals
albertz 8cc7537
make regen-cases
albertz fee8ad6
add news entry
albertz 01b2774
test for locals, exception going out of scope
albertz b384b6e
test for frame.clear
albertz c908815
test_clear_locals_issue113939 better
albertz ecde7e5
test_locals_cur_frame_issue113939 better
albertz 7b068e4
rename test_locals_cleared_after_exception_handled
albertz 7a2fa8e
rename test_clear_locals_after_f_locals_access
albertz fae8b78
reformulate news entry
albertz d701ebb
revert DELETE_FAST change
albertz 227c495
whitespace
iritkatriel 4fd5231
Merge branch 'main' into patch-1
iritkatriel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
Misc/NEWS.d/next/Core and Builtins/2024-01-12-16-40-07.gh-issue-113939.Yi3L-e.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
frame.clear(): | ||
Clear frame.f_locals as well, and not only the fast locals. | ||
This is relevant once frame.f_locals was accessed, | ||
which would contain also references to all the locals. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.