Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e08c9db

Browse files
committed
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.
1 parent 10cbe8d commit e08c9db

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/ref/ref5.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,10 @@ \subsection{Calls\label{calls}}
422422
\production{call}
423423
{\token{primary} "(" [\token{argument_list} [","]] ")"}
424424
\production{argument_list}
425-
{\token{positional_arguments} ["," \token{keyword_arguments}
426-
["," "*" \token{expression} ["," "**" \token{expression}]]]}
427-
\productioncont{| \token{keyword_arguments} ["," "*" \token{expression}
428-
["," "**" \token{expression}]]}
425+
{\token{positional_arguments} ["," \token{keyword_arguments}]
426+
["," "*" \token{expression}] ["," "**" \token{expression}]}
427+
\productioncont{| \token{keyword_arguments} ["," "*" \token{expression}]
428+
["," "**" \token{expression}]}
429429
\productioncont{| "*" \token{expression} ["," "**" \token{expression}]}
430430
\productioncont{| "**" \token{expression}}
431431
\production{positional_arguments}

0 commit comments

Comments
 (0)