Skip to content

[3.13] gh-156091: Fix crash compiling deeply nested inlined comprehensions (GH-156957) - #157050

Merged
iritkatriel merged 1 commit into
python:3.13from
iritkatriel:backport-14a93f4-3.13
Sep 17, 2026
Merged

iritkatriel merged 1 commit into
python:3.13from
iritkatriel:backport-14a93f4-3.13

Conversation

@iritkatriel

@iritkatriel iritkatriel commented Sep 6, 2026 •

Copy link
Copy Markdown
Member

Summary

Test plan

  • ./python.exe -m test test_syntax -m test_nested_inlined_comprehensions_block_limit

Made with Cursor

…prehensions (pythonGH-156957)

Count inlined-comprehension SETUP_FINALLY handlers toward CO_MAXBLOCKS.
Manual backport of 14a93f4 / pythonGH-156993; 3.13 still has this code in compile.c.

Co-authored-by: Cursor <cursoragent@cursor.com>
@bedevere-app bedevere-app Bot added awaiting core review type-crash A hard crash of the interpreter, possibly with a core dump labels Sep 6, 2026
@iritkatriel
iritkatriel merged commit d7657d0 into python:3.13 Sep 17, 2026
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-crash A hard crash of the interpreter, possibly with a core dump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant