Kaydet (Commit) e08c9dbf authored tarafından Fred Drake's avatar Fred Drake

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.
üst 10cbe8dc
......@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment