]> granicus.if.org Git - python/commit
Fix for SF [ 734869 ] Lambda functions in list comprehensions
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 21 May 2003 17:34:50 +0000 (17:34 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 21 May 2003 17:34:50 +0000 (17:34 +0000)
commit4d508adae3101434ae62be1c140e9877673dc257
treeb22ceb18bf19afd824be2fda26b89bd7079dca07
parent6624e6854694315c25981f6bb6cfd360798169c5
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.
Include/symtable.h
Lib/test/output/test_grammar
Lib/test/test_grammar.py
Python/compile.c
Python/symtable.c