[Python-checkins] python/dist/src/Lib/test/output test_grammar,1.19,1.20
jhylton@users.sourceforge.net
jhylton@users.sourceforge.net
Wed, 21 May 2003 10:34:52 -0700
Update of /cvsroot/python/python/dist/src/Lib/test/output
In directory sc8-pr-cvs1:/tmp/cvs-serv10692/Lib/test/output
Modified Files:
test_grammar
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: test_grammar
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/output/test_grammar,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** test_grammar 3 Apr 2002 22:41:50 -0000 1.19
--- test_grammar 21 May 2003 17:34:49 -0000 1.20
***************
*** 61,64 ****
--- 61,65 ----
[(1, 'Apple'), (1, 'Banana'), (1, 'Coconut'), (2, 'Apple'), (2, 'Banana'), (2, 'Coconut'), (3, 'Apple'), (3, 'Banana'), (3, 'Coconut'), (4, 'Apple'), (4, 'Banana'), (4, 'Coconut'), (5, 'Apple'), (5, 'Banana'), (5, 'Coconut')]
[(1, 'Banana'), (1, 'Coconut'), (2, 'Banana'), (2, 'Coconut'), (3, 'Banana'), (3, 'Coconut'), (4, 'Banana'), (4, 'Coconut'), (5, 'Banana'), (5, 'Coconut')]
+ [[1], [1, 1], [1, 2, 4], [1, 3, 9, 27], [1, 4, 16, 64, 256]]
[False, False, False]
[[1, 2], [3, 4], [5, 6]]