]> granicus.if.org Git - python/commitdiff
Simplify the production for argument list, making sure that it
authorFred Drake <fdrake@acm.org>
Thu, 20 Jun 2002 14:23:15 +0000 (14:23 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 20 Jun 2002 14:23:15 +0000 (14:23 +0000)
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.

Doc/ref/ref5.tex

index 2a49ebd5bb03bee689c1d266156db15eada4e961..25bcdbf297650e8d2110b0e69a71907fecb6b77c 100644 (file)
@@ -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}