mirror of
https://github.com/python/cpython.git
synced 2026-05-15 08:59:27 -04:00
Use only '*' for varargs list
This commit is contained in:
+1
-1
@@ -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)* [',']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user