mirror of
https://github.com/python/cpython.git
synced 2024-11-26 11:24:40 +08:00
parent
e808c2341b
commit
9a40851569
@ -493,8 +493,8 @@ series of arguments:
|
||||
{\token{identifier} "=" \token{expression}}
|
||||
\end{productionlist}
|
||||
|
||||
A trailing comma may be present after an argument list but does not
|
||||
affect the semantics.
|
||||
A trailing comma may be present after the positional and keyword
|
||||
arguments but does not affect the semantics.
|
||||
|
||||
The primary must evaluate to a callable object (user-defined
|
||||
functions, built-in functions, methods of built-in objects, class
|
||||
|
@ -322,10 +322,10 @@ section~\ref{types}):
|
||||
\production{decorator}
|
||||
{"@" \token{dotted_name} ["(" [\token{argument_list} [","]] ")"] NEWLINE}
|
||||
\production{parameter_list}
|
||||
{(\token{defparameter} ",")*}
|
||||
\productioncont{("*" \token{identifier} [, "**" \token{identifier}]}
|
||||
\productioncont{| "**" \token{identifier}
|
||||
| \token{defparameter} [","])}
|
||||
{(\token{defparameter} ",")*}
|
||||
\productioncont{(~~"*" \token{identifier} [, "**" \token{identifier}]}
|
||||
\productioncont{ | "**" \token{identifier}}
|
||||
\productioncont{ | \token{defparameter} [","] )}
|
||||
\production{defparameter}
|
||||
{\token{parameter} ["=" \token{expression}]}
|
||||
\production{sublist}
|
||||
|
Loading…
Reference in New Issue
Block a user