Skip to content

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

Open
iritkatriel wants to merge 1 commit into
python:3.13from
iritkatriel:backport-14a93f4-3.13
Open

[3.13] gh-156091: Fix crash compiling deeply nested inlined comprehensions (GH-156957)#157050
iritkatriel wants to merge 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review 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