mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
parent
e808c2341b
commit
9a40851569
2 changed files with 6 additions and 6 deletions
|
|
@ -493,8 +493,8 @@ series of arguments:
|
||||||
{\token{identifier} "=" \token{expression}}
|
{\token{identifier} "=" \token{expression}}
|
||||||
\end{productionlist}
|
\end{productionlist}
|
||||||
|
|
||||||
A trailing comma may be present after an argument list but does not
|
A trailing comma may be present after the positional and keyword
|
||||||
affect the semantics.
|
arguments but does not affect the semantics.
|
||||||
|
|
||||||
The primary must evaluate to a callable object (user-defined
|
The primary must evaluate to a callable object (user-defined
|
||||||
functions, built-in functions, methods of built-in objects, class
|
functions, built-in functions, methods of built-in objects, class
|
||||||
|
|
|
||||||
|
|
@ -322,10 +322,10 @@ section~\ref{types}):
|
||||||
\production{decorator}
|
\production{decorator}
|
||||||
{"@" \token{dotted_name} ["(" [\token{argument_list} [","]] ")"] NEWLINE}
|
{"@" \token{dotted_name} ["(" [\token{argument_list} [","]] ")"] NEWLINE}
|
||||||
\production{parameter_list}
|
\production{parameter_list}
|
||||||
{(\token{defparameter} ",")*}
|
{(\token{defparameter} ",")*}
|
||||||
\productioncont{("*" \token{identifier} [, "**" \token{identifier}]}
|
\productioncont{(~~"*" \token{identifier} [, "**" \token{identifier}]}
|
||||||
\productioncont{| "**" \token{identifier}
|
\productioncont{ | "**" \token{identifier}}
|
||||||
| \token{defparameter} [","])}
|
\productioncont{ | \token{defparameter} [","] )}
|
||||||
\production{defparameter}
|
\production{defparameter}
|
||||||
{\token{parameter} ["=" \token{expression}]}
|
{\token{parameter} ["=" \token{expression}]}
|
||||||
\production{sublist}
|
\production{sublist}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue