From 4d508adae3101434ae62be1c140e9877673dc257 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Wed, 21 May 2003 17:34:50 +0000 Subject: 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. --- Python/symtable.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Python/symtable.c') diff --git a/Python/symtable.c b/Python/symtable.c index e48eaea1d5..f86fd2fbc8 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: -- cgit v1.2.1