mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
allow keyword args after *args in a function call
This commit is contained in:
parent
de0de885f7
commit
2d735bc098
6 changed files with 30 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue