diff Python/symtable.c @ 29199:cd1c826c98a2 legacy-trunk

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.
author Jeremy Hylton <jeremy@alum.mit.edu>
date Wed, 21 May 2003 17:34:50 +0000
parents 3aaf24b949df
children 302d399cfd37
line wrap: on
line diff
--- a/Python/symtable.c	Wed May 21 05:58:46 2003 +0000
+++ b/Python/symtable.c	Wed May 21 17:34:50 2003 +0000
@@ -61,6 +61,7 @@
 
 	ste->ste_optimized = 0;
 	ste->ste_opt_lineno = 0;
+	ste->ste_tmpname = 0;
 	ste->ste_lineno = lineno;
 	switch (type) {
 	case funcdef: