[Python-checkins] r42568 - python/trunk/Grammar/Grammar

neal.norwitz python-checkins at python.org
Sat Feb 25 00:11:15 CET 2006


Author: neal.norwitz
Date: Sat Feb 25 00:11:14 2006
New Revision: 42568

Modified:
   python/trunk/Grammar/Grammar
Log:
Implement change suggested by Jiwon Seo on python-dev.
['(' gen_for ')'] is redundant with test, so remove it.


Modified: python/trunk/Grammar/Grammar
==============================================================================
--- python/trunk/Grammar/Grammar	(original)
+++ python/trunk/Grammar/Grammar	Sat Feb 25 00:11:14 2006
@@ -116,7 +116,7 @@
 classdef: 'class' NAME ['(' [testlist] ')'] ':' suite
 
 arglist: (argument ',')* (argument [',']| '*' test [',' '**' test] | '**' test)
-argument: test [gen_for] | test '=' test ['(' gen_for ')']  # Really [keyword '='] test
+argument: test [gen_for] | test '=' test  # 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