mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
parameter_list was meant here
This commit is contained in:
parent
ad17358a2f
commit
57f97f400b
1 changed files with 1 additions and 1 deletions
|
@ -427,7 +427,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` ["(" [`argument_list` [","]] ")"] NEWLINE
|
||||
decorator: "@" `dotted_name` ["(" [`parameter_list` [","]] ")"] NEWLINE
|
||||
dotted_name: `identifier` ("." `identifier`)*
|
||||
parameter_list: (`defparameter` ",")*
|
||||
: ( "*" [`parameter`] ("," `defparameter`)*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue