Commit d6e74e10 authored by Neal Norwitz's avatar Neal Norwitz

Implement change suggested by Jiwon Seo on python-dev.

['(' gen_for ')'] is redundant with test, so remove it.
parent 20f0e0e1
...@@ -116,7 +116,7 @@ dictmaker: test ':' test (',' test ':' test)* [','] ...@@ -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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment