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

Skip to content

Commit 9a40851

Browse files
committed
clarify trailing comma in function argument list
(SF bug #798652)
1 parent e808c23 commit 9a40851

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/ref/ref5.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,8 @@ \subsection{Calls\label{calls}}
493493
{\token{identifier} "=" \token{expression}}
494494
\end{productionlist}
495495
496-
A trailing comma may be present after an argument list but does not
497-
affect the semantics.
496+
A trailing comma may be present after the positional and keyword
497+
arguments but does not affect the semantics.
498498
499499
The primary must evaluate to a callable object (user-defined
500500
functions, built-in functions, methods of built-in objects, class

Doc/ref/ref7.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,10 @@ \section{Function definitions\label{function}}
322322
\production{decorator}
323323
{"@" \token{dotted_name} ["(" [\token{argument_list} [","]] ")"] NEWLINE}
324324
\production{parameter_list}
325-
{(\token{defparameter} ",")*}
326-
\productioncont{("*" \token{identifier} [, "**" \token{identifier}]}
327-
\productioncont{| "**" \token{identifier}
328-
| \token{defparameter} [","])}
325+
{(\token{defparameter} ",")*}
326+
\productioncont{(~~"*" \token{identifier} [, "**" \token{identifier}]}
327+
\productioncont{ | "**" \token{identifier}}
328+
\productioncont{ | \token{defparameter} [","] )}
329329
\production{defparameter}
330330
{\token{parameter} ["=" \token{expression}]}
331331
\production{sublist}

0 commit comments

Comments
 (0)