[Python-checkins] python/dist/src/Include symtable.h,2.11,2.12

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
Wed, 21 May 2003 10:34:51 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1:/tmp/cvs-serv10692/Include

Modified Files:
	symtable.h 
Log Message:
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.


Index: symtable.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/symtable.h,v
retrieving revision 2.11
retrieving revision 2.12
diff -C2 -d -r2.11 -r2.12
*** symtable.h	11 Dec 2002 14:04:58 -0000	2.11
--- symtable.h	21 May 2003 17:34:49 -0000	2.12
***************
*** 29,33 ****
  	int st_errors;           /* number of errors */
  	char *st_private;        /* name of current class or NULL */
- 	int st_tmpname;          /* temporary name counter */
  	PyFutureFeatures *st_future; /* module's future features */
  };
--- 29,32 ----
***************
*** 48,51 ****
--- 47,51 ----
  	int ste_generator;       /* true if namespace is a generator */
  	int ste_opt_lineno;      /* lineno of last exec or import * */
+ 	int ste_tmpname;          /* temporary name counter */
  	struct symtable *ste_table;
  } PySymtableEntryObject;