mirror of https://github.com/python/cpython
Backport from 3.2: fix formatting of syntax description of function definition.
This commit is contained in:
parent
b74e02e6c2
commit
32473e73f4
|
@ -431,7 +431,7 @@ A function definition defines a user-defined function object (see section
|
||||||
funcdef: "def" `funcname` "(" [`parameter_list`] ")" ":" `suite`
|
funcdef: "def" `funcname` "(" [`parameter_list`] ")" ":" `suite`
|
||||||
dotted_name: `identifier` ("." `identifier`)*
|
dotted_name: `identifier` ("." `identifier`)*
|
||||||
parameter_list: (`defparameter` ",")*
|
parameter_list: (`defparameter` ",")*
|
||||||
: ( "*" `identifier` [, "**" `identifier`]
|
: ( "*" `identifier` ["," "**" `identifier`]
|
||||||
: | "**" `identifier`
|
: | "**" `identifier`
|
||||||
: | `defparameter` [","] )
|
: | `defparameter` [","] )
|
||||||
defparameter: `parameter` ["=" `expression`]
|
defparameter: `parameter` ["=" `expression`]
|
||||||
|
|
Loading…
Reference in New Issue