-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
gh-125038: Crash after genexpr.gi_frame.f_locals manipulations is fixed #125178
Merged
JelleZijlstra
merged 11 commits into
python:main
from
efimov-mikhail:crash_fix_generators_f_locals
Oct 22, 2024
Merged
Changes from 2 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
3dd0feb
gh-125038: Crash after genexpr.gi_frame.f_locals manipulations is fixed
efimov-mikhail f54918c
Update Misc/NEWS.d/next/Core_and_Builtins/2024-10-09-13-53-50.gh-issu…
efimov-mikhail 9665d13
gh-125038: Use TypeError with "object is not an iterator" text
efimov-mikhail 233f6b6
gh-125038: Changes in tests on generator modifying
efimov-mikhail ca04eef
gh-125038: CHECK_ITER instruction introduced
efimov-mikhail b94d5c4
Merge branch 'main' into crash_fix_generators_f_locals
efimov-mikhail 385b389
gh-125038: Improvements in tests: self.subTest is used
efimov-mikhail 7aa00b4
gh-125038: Further improvements in tests
efimov-mikhail 890b936
gh-125038: CHECK_ITER instruction removed, use GET_ITER instead
efimov-mikhail d75a476
gh-125038: Tests are refactored
efimov-mikhail f93e8cd
gh-125038: More suitable name for test classes is provided
efimov-mikhail 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 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
2 changes: 2 additions & 0 deletions
2
Misc/NEWS.d/next/Core_and_Builtins/2024-10-09-13-53-50.gh-issue-125038.ffSLCz.rst
This file contains 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,2 @@ | ||
Fix crash when iterating over a generator expression after direct changes on ``gi_frame.f_locals``. | ||
Patch by Mikhail Efimov. |
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This error is incorrect as it's looking for
__next__
, not__iter__
. I think we can use the same error asbuiltins.next()
: