]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use only '*' for varargs list
authorGuido van Rossum <guido@python.org>
Mon, 6 Apr 1992 12:36:19 +0000 (12:36 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 6 Apr 1992 12:36:19 +0000 (12:36 +0000)
Grammar/Grammar

index 24dc70e3d8863651c6b78848fdf60c25a7fbed47..e9c00919923e38e8d0f43ec005d573746d705e53 100644 (file)
@@ -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)* [',']