[Python-checkins] python/dist/src/Python compile.c,2.285,2.286 symtable.c,2.10,2.11

Raymond Hettinger python@rcn.com
Thu, 22 May 2003 12:22:47 -0400


> Modified Files:
> compile.c symtable.c
> 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.

It would be great if this  were backported to 2.2.3.
I applying it directly with cvs -j but that led to an
C assertion failure in:  python_d regrtest.py test_symtable


Raymond