mirror of
https://github.com/python/cpython
synced 2024-09-05 08:17:45 +00:00
Implement change suggested by Jiwon Seo on python-dev.
['(' gen_for ')'] is redundant with test, so remove it.
This commit is contained in:
parent
8786eb5e92
commit
d074beb692
|
@ -116,7 +116,7 @@ dictmaker: test ':' test (',' test ':' test)* [',']
|
||||||
classdef: 'class' NAME ['(' [testlist] ')'] ':' suite
|
classdef: 'class' NAME ['(' [testlist] ')'] ':' suite
|
||||||
|
|
||||||
arglist: (argument ',')* (argument [',']| '*' test [',' '**' test] | '**' test)
|
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_iter: list_for | list_if
|
||||||
list_for: 'for' exprlist 'in' testlist_safe [list_iter]
|
list_for: 'for' exprlist 'in' testlist_safe [list_iter]
|
||||||
|
|
Loading…
Reference in a new issue