mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Backed out changeset 71ff2235bb4c (closes #27042)
This commit is contained in:
parent
ed64d6b4a5
commit
bc7ee43a6d
1 changed files with 1 additions and 1 deletions
|
|
@ -469,7 +469,7 @@ A function definition defines a user-defined function object (see section
|
|||
.. productionlist::
|
||||
funcdef: [`decorators`] "def" `funcname` "(" [`parameter_list`] ")" ["->" `expression`] ":" `suite`
|
||||
decorators: `decorator`+
|
||||
decorator: "@" `dotted_name` ["(" [`parameter_list` [","]] ")"] NEWLINE
|
||||
decorator: "@" `dotted_name` ["(" [`argument_list` [","]] ")"] NEWLINE
|
||||
dotted_name: `identifier` ("." `identifier`)*
|
||||
parameter_list: (`defparameter` ",")*
|
||||
: | "*" [`parameter`] ("," `defparameter`)* ["," "**" `parameter`]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue