From 32473e73f442e490cdf4c39aeb16e6ff38af48f3 Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Thu, 25 Oct 2012 17:26:10 -0700 Subject: [PATCH] Backport from 3.2: fix formatting of syntax description of function definition. --- Doc/reference/compound_stmts.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index e98e2613d4c..a86eb11f880 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`]