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.
This commit is contained in:
Fred Drake 2002-06-20 14:23:15 +00:00
parent 10cbe8dcbc
commit e08c9dbffc
1 changed files with 4 additions and 4 deletions

View 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}