summaryrefslogtreecommitdiffstats
path: root/Grammar
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-02-24 23:11:14 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-02-24 23:11:14 (GMT)
commitd074beb6925a87874600b605a91a23263b3a6028 (patch)
tree779ab402efd1ce26677f76a495c9698bbc5746f8 /Grammar
parent8786eb5e9220dc85ab3190ca0d47375acd08ff30 (diff)
downloadcpython-d074beb6925a87874600b605a91a23263b3a6028.zip
cpython-d074beb6925a87874600b605a91a23263b3a6028.tar.gz
cpython-d074beb6925a87874600b605a91a23263b3a6028.tar.bz2
Implement change suggested by Jiwon Seo on python-dev.
['(' gen_for ')'] is redundant with test, so remove it.
Diffstat (limited to 'Grammar')
-rw-r--r--Grammar/Grammar2
1 files changed, 1 insertions, 1 deletions
diff --git a/Grammar/Grammar b/Grammar/Grammar
index 1553b34..666ff44 100644
--- a/Grammar/Grammar
+++ b/Grammar/Grammar
@@ -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]