Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d074beb

Browse files
committed
Implement change suggested by Jiwon Seo on python-dev.
['(' gen_for ')'] is redundant with test, so remove it.
1 parent 8786eb5 commit d074beb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Grammar/Grammar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ dictmaker: test ':' test (',' test ':' test)* [',']
116116
classdef: 'class' NAME ['(' [testlist] ')'] ':' suite
117117

118118
arglist: (argument ',')* (argument [',']| '*' test [',' '**' test] | '**' test)
119-
argument: test [gen_for] | test '=' test ['(' gen_for ')'] # Really [keyword '='] test
119+
argument: test [gen_for] | test '=' test # Really [keyword '='] test
120120

121121
list_iter: list_for | list_if
122122
list_for: 'for' exprlist 'in' testlist_safe [list_iter]

0 commit comments

Comments
 (0)