[Python-checkins] r84216 - sandbox/trunk/2to3/lib2to3/Grammar.txt

benjamin.peterson python-checkins at python.org
Thu Aug 19 23:44:05 CEST 2010


Author: benjamin.peterson
Date: Thu Aug 19 23:44:05 2010
New Revision: 84216

Log:
allow star_expr in testlist_gexp

Modified:
   sandbox/trunk/2to3/lib2to3/Grammar.txt

Modified: sandbox/trunk/2to3/lib2to3/Grammar.txt
==============================================================================
--- sandbox/trunk/2to3/lib2to3/Grammar.txt	(original)
+++ sandbox/trunk/2to3/lib2to3/Grammar.txt	Thu Aug 19 23:44:05 2010
@@ -128,7 +128,7 @@
        '`' testlist1 '`' |
        NAME | NUMBER | STRING+ | '.' '.' '.')
 listmaker: (test|star_expr) ( comp_for | (',' (test|star_expr))* [','] )
-testlist_gexp: test ( comp_for | (',' (test|star_expr))* [','] )
+testlist_gexp: (test|star_expr) ( comp_for | (',' (test|star_expr))* [','] )
 lambdef: 'lambda' [varargslist] ':' test
 trailer: '(' [arglist] ')' | '[' subscriptlist ']' | '.' NAME
 subscriptlist: subscript (',' subscript)* [',']


More information about the Python-checkins mailing list