]> granicus.if.org Git - python/commitdiff
Implement change suggested by Jiwon Seo on python-dev.
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 24 Feb 2006 23:11:14 +0000 (23:11 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 24 Feb 2006 23:11:14 +0000 (23:11 +0000)
['(' gen_for ')'] is redundant with test, so remove it.

Grammar/Grammar

index 1553b34738a2206b4e6ce407c4d89bad0efb6df3..666ff44d0e5612cf36cbb4dc0bde42797906accf 100644 (file)
@@ -116,7 +116,7 @@ dictmaker: test ':' test (',' test ':' test)* [',']
 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]