File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
499499The primary must evaluate to a callable object (user-defined
500500functions, built-in functions, methods of built-in objects, class
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments