allow keyword args after *args in a function call

This commit is contained in:
Benjamin Peterson 2008-08-19 20:57:10 +00:00
parent de0de885f7
commit 2d735bc098
6 changed files with 30 additions and 13 deletions

View file

@ -113,7 +113,9 @@ dictorsetmaker: ( (test ':' test (comp_for | (',' test ':' test)* [','])) |
classdef: 'class' NAME ['(' [arglist] ')'] ':' suite
arglist: (argument ',')* (argument [',']| '*' test [',' '**' test] | '**' test)
arglist: (argument ',')* (argument [',']
|'*' test (',' argument)* [',' '**' test]
|'**' test)
argument: test [comp_for] | test '=' test # Really [keyword '='] test
comp_iter: comp_for | comp_if