Backport from 3.2: fix formatting of syntax description of function definition.

This commit is contained in:
Chris Jerdonek 2012-10-25 17:26:10 -07:00
parent b74e02e6c2
commit 32473e73f4
1 changed files with 1 additions and 1 deletions

View File

@ -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`]