gh-120225: fix crash in compiler on empty block at end of exception handler#120235
Merged
iritkatriel merged 5 commits intopython:mainfrom Jun 7, 2024
Merged
gh-120225: fix crash in compiler on empty block at end of exception handler#120235iritkatriel merged 5 commits intopython:mainfrom
iritkatriel merged 5 commits intopython:mainfrom
Conversation
iritkatriel
commented
Jun 7, 2024
| NO_LOCATION); | ||
| explicit_jump->b_cold = 1; | ||
| explicit_jump->b_next = b->b_next; | ||
| explicit_jump->b_predecessors = 1; |
Member
Author
There was a problem hiding this comment.
This was missing here - it is needed later for line number propagation to work.
carljm
approved these changes
Jun 7, 2024
| case True: | ||
| pass | ||
| case name_5 if f'e': | ||
| {name_3: name_4 async for name_2 in name_5} |
Member
There was a problem hiding this comment.
I guess the exception handling block is coming from inlining this comprehension?
|
Thanks @iritkatriel for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Jun 7, 2024
…tion handler (pythonGH-120235) (cherry picked from commit 4fc82b6) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
|
GH-120249 is a backport of this pull request to the 3.13 branch. |
|
noahbkim
pushed a commit
to hudson-trading/cpython
that referenced
this pull request
Jul 11, 2024
estyxx
pushed a commit
to estyxx/cpython
that referenced
this pull request
Jul 17, 2024
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #120225.
It's not necessary to set a line number here. It can be propagated later (and if it's not that's also ok, JUMP_NO_INTERRUPT doesn't require a line number).