bpo-32836: Remove obsolete code from symtable pass (GH-5680) · pythoncapi/cpython@3a087be · GitHub
Skip to content

Commit 3a087be

Browse files
nitishchncoghlan
authored andcommitted
bpo-32836: Remove obsolete code from symtable pass (pythonGH-5680)
When comprehensions switched to using a nested scope, the old code for generating a temporary name to hold the accumulation target became redundant, but was never actually removed. Patch by Nitish Chandra.
1 parent 6b5df90 commit 3a087be

3 files changed

Lines changed: 1 addition & 26 deletions

File tree

Include/symtable.h

Lines changed: 0 additions & 1 deletion
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Don't use temporary variables in cases of list/dict/set comprehensions

Python/symtable.c

Lines changed: 0 additions & 25 deletions

0 commit comments

Comments
 (0)