summaryrefslogtreecommitdiffstats
path: root/Grammar
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-04-06 12:36:19 (GMT)
committerGuido van Rossum <guido@python.org>1992-04-06 12:36:19 (GMT)
commit02334d2be0207caf2feaec2e5577e5b762efac48 (patch)
tree7fd83ee6af85233e571222a9490635ffa89c9c98 /Grammar
parent57639655c712ba8d88a3cb71759ec5d438ccabb4 (diff)
downloadcpython-02334d2be0207caf2feaec2e5577e5b762efac48.zip
cpython-02334d2be0207caf2feaec2e5577e5b762efac48.tar.gz
cpython-02334d2be0207caf2feaec2e5577e5b762efac48.tar.bz2
Use only '*' for varargs list
Diffstat (limited to 'Grammar')
-rw-r--r--Grammar/Grammar2
1 files changed, 1 insertions, 1 deletions
diff --git a/Grammar/Grammar b/Grammar/Grammar
index 24dc70e..e9c0091 100644
--- a/Grammar/Grammar
+++ b/Grammar/Grammar
@@ -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)* [',']