diff options
author | Guido van Rossum <guido@python.org> | 1992-01-26 18:17:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-26 18:17:23 (GMT) |
commit | 610cdc52ca19f79cbe0629e4308d9ec4c8eb8708 (patch) | |
tree | 1d4f8735d5a969fdbc9395022d8d760319e6d10b | |
parent | 56cd67ad472dfe184767bf076d4c79dd04e85f34 (diff) | |
download | cpython-610cdc52ca19f79cbe0629e4308d9ec4c8eb8708.zip cpython-610cdc52ca19f79cbe0629e4308d9ec4c8eb8708.tar.gz cpython-610cdc52ca19f79cbe0629e4308d9ec4c8eb8708.tar.bz2 |
Add '*' for varargs list.
-rw-r--r-- | Grammar/Grammar | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Grammar/Grammar b/Grammar/Grammar index 3462edd..a93d3e2 100644 --- a/Grammar/Grammar +++ b/Grammar/Grammar @@ -2,6 +2,10 @@ # Change log: +# 16-Jan-92: +# Added '*' as alternative for '+' in varargs syntax +# (Not sure which alternative is better yet.) + # 11-Jan-92: # Variable length argument list syntax added: def f(a, b, +rest): ... @@ -62,7 +66,7 @@ eval_input: testlist ENDMARKER funcdef: 'def' NAME parameters ':' suite parameters: '(' [varargslist] ')' -varargslist: (fpdef ',')* '+' NAME | fpdef (',' fpdef)* [','] +varargslist: (fpdef ',')* ('+'|'*') NAME | fpdef (',' fpdef)* [','] fpdef: NAME | '(' fplist ')' fplist: fpdef (',' fpdef)* [','] |