summaryrefslogtreecommitdiffstats
path: root/Doc/ref
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-06-20 14:23:15 (GMT)
committerFred Drake <fdrake@acm.org>2002-06-20 14:23:15 (GMT)
commite08c9dbffc2eaad4a709b648cb37408db62a118c (patch)
tree316f1fa9abbcc483c922c6a15257acd61b889fde /Doc/ref
parent10cbe8dcbc83c91ce94b42e18f4406bb2af9cc4a (diff)
downloadcpython-e08c9dbffc2eaad4a709b648cb37408db62a118c.zip
cpython-e08c9dbffc2eaad4a709b648cb37408db62a118c.tar.gz
cpython-e08c9dbffc2eaad4a709b648cb37408db62a118c.tar.bz2
Simplify the production for argument list, making sure that it
actually allows all the legal syntax, and nothing else. Previously, it did not allow a call like func(arg, **dictionary). This closes (again!) SF bug #493243.
Diffstat (limited to 'Doc/ref')
-rw-r--r--Doc/ref/ref5.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/ref/ref5.tex b/Doc/ref/ref5.tex
index 2a49ebd..25bcdbf 100644
--- a/Doc/ref/ref5.tex
+++ b/Doc/ref/ref5.tex
@@ -422,10 +422,10 @@ series of arguments:
\production{call}
{\token{primary} "(" [\token{argument_list} [","]] ")"}
\production{argument_list}
- {\token{positional_arguments} ["," \token{keyword_arguments}
- ["," "*" \token{expression} ["," "**" \token{expression}]]]}
- \productioncont{| \token{keyword_arguments} ["," "*" \token{expression}
- ["," "**" \token{expression}]]}
+ {\token{positional_arguments} ["," \token{keyword_arguments}]
+ ["," "*" \token{expression}] ["," "**" \token{expression}]}
+ \productioncont{| \token{keyword_arguments} ["," "*" \token{expression}]
+ ["," "**" \token{expression}]}
\productioncont{| "*" \token{expression} ["," "**" \token{expression}]}
\productioncont{| "**" \token{expression}}
\production{positional_arguments}