[Python-checkins] python/dist/src/Grammar Grammar,1.52,1.52.2.1

nnorwitz@users.sourceforge.net nnorwitz at users.sourceforge.net
Sun Oct 23 02:44:06 CEST 2005


Update of /cvsroot/python/python/dist/src/Grammar
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24884/Grammar

Modified Files:
      Tag: release24-maint
	Grammar 
Log Message:
Backport: SF bug #1167751: fix incorrect code being for generator expressions.

Index: Grammar
===================================================================
RCS file: /cvsroot/python/python/dist/src/Grammar/Grammar,v
retrieving revision 1.52
retrieving revision 1.52.2.1
diff -u -d -r1.52 -r1.52.2.1
--- Grammar	31 Aug 2004 10:07:00 -0000	1.52
+++ Grammar	23 Oct 2005 00:44:03 -0000	1.52.2.1
@@ -102,7 +102,7 @@
 classdef: 'class' NAME ['(' testlist ')'] ':' suite
 
 arglist: (argument ',')* (argument [',']| '*' test [',' '**' test] | '**' test)
-argument: [test '='] test [gen_for] # Really [keyword '='] test
+argument: test [gen_for] | test '=' test ['(' gen_for ')'] # Really [keyword '='] test
 
 list_iter: list_for | list_if
 list_for: 'for' exprlist 'in' testlist_safe [list_iter]



More information about the Python-checkins mailing list