gh-128396: Fix a crash when inline comprehension has the same local v… · wrongnull/cpython@ccf1732 · GitHub
Skip to content

Commit ccf1732

Browse files
pythongh-128396: Fix a crash when inline comprehension has the same local variable as the outside scope (python#130235)
1 parent 5f00501 commit ccf1732

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

Lib/test/test_frame.py

Lines changed: 6 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a crash that occurs when calling :func:`locals` inside an inline comprehension that uses the same local variable as the outer frame scope where the variable is a free or cell var.

Objects/frameobject.c

Lines changed: 9 additions & 2 deletions

0 commit comments

Comments
 (0)