diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2003-05-21 17:34:50 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2003-05-21 17:34:50 (GMT) |
commit | 4d508adae3101434ae62be1c140e9877673dc257 (patch) | |
tree | b22ceb18bf19afd824be2fda26b89bd7079dca07 /Python/symtable.c | |
parent | 6624e6854694315c25981f6bb6cfd360798169c5 (diff) | |
download | cpython-4d508adae3101434ae62be1c140e9877673dc257.zip cpython-4d508adae3101434ae62be1c140e9877673dc257.tar.gz cpython-4d508adae3101434ae62be1c140e9877673dc257.tar.bz2 |
Fix for SF [ 734869 ] Lambda functions in list comprehensions
The compiler was reseting the list comprehension tmpname counter for each function, but the symtable was using the same counter for the entire module. Repair by move tmpname into the symtable entry.
Bugfix candidate.
Diffstat (limited to 'Python/symtable.c')
-rw-r--r-- | Python/symtable.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/symtable.c b/Python/symtable.c index e48eaea..f86fd2f 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -61,6 +61,7 @@ PySymtableEntry_New(struct symtable *st, char *name, int type, int lineno) ste->ste_optimized = 0; ste->ste_opt_lineno = 0; + ste->ste_tmpname = 0; ste->ste_lineno = lineno; switch (type) { case funcdef: |