mirror of
https://github.com/python/cpython.git
synced 2025-12-02 07:37:25 +00:00
Use only '*' for varargs list
This commit is contained in:
parent
57639655c7
commit
02334d2be0
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ eval_input: testlist NEWLINE* ENDMARKER
|
||||||
|
|
||||||
funcdef: 'def' NAME parameters ':' suite
|
funcdef: 'def' NAME parameters ':' suite
|
||||||
parameters: '(' [varargslist] ')'
|
parameters: '(' [varargslist] ')'
|
||||||
varargslist: (fpdef ',')* ('+'|'*') NAME | fpdef (',' fpdef)* [',']
|
varargslist: (fpdef ',')* '*' NAME | fpdef (',' fpdef)* [',']
|
||||||
fpdef: NAME | '(' fplist ')'
|
fpdef: NAME | '(' fplist ')'
|
||||||
fplist: fpdef (',' fpdef)* [',']
|
fplist: fpdef (',' fpdef)* [',']
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue