mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
Use only '*' for varargs list
This commit is contained in:
parent
57639655c7
commit
02334d2be0
@ -69,7 +69,7 @@ eval_input: testlist NEWLINE* ENDMARKER
|
||||
|
||||
funcdef: 'def' NAME parameters ':' suite
|
||||
parameters: '(' [varargslist] ')'
|
||||
varargslist: (fpdef ',')* ('+'|'*') NAME | fpdef (',' fpdef)* [',']
|
||||
varargslist: (fpdef ',')* '*' NAME | fpdef (',' fpdef)* [',']
|
||||
fpdef: NAME | '(' fplist ')'
|
||||
fplist: fpdef (',' fpdef)* [',']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user