From: Chris Jerdonek Date: Fri, 26 Oct 2012 00:26:10 +0000 (-0700) Subject: Backport from 3.2: fix formatting of syntax description of function definition. X-Git-Tag: v2.7.5~109^2~199 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32473e73f442e490cdf4c39aeb16e6ff38af48f3;p=python Backport from 3.2: fix formatting of syntax description of function definition. --- diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index e98e2613d4..a86eb11f88 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -431,7 +431,7 @@ A function definition defines a user-defined function object (see section funcdef: "def" `funcname` "(" [`parameter_list`] ")" ":" `suite` dotted_name: `identifier` ("." `identifier`)* parameter_list: (`defparameter` ",")* - : ( "*" `identifier` [, "**" `identifier`] + : ( "*" `identifier` ["," "**" `identifier`] : | "**" `identifier` : | `defparameter` [","] ) defparameter: `parameter` ["=" `expression`]