[Python-checkins] cpython (2.7): Backport from 3.2: fix formatting of syntax description of function definition.

chris.jerdonek python-checkins at python.org
Fri Oct 26 02:30:12 CEST 2012


http://hg.python.org/cpython/rev/405932ddca9c
changeset:   79939:405932ddca9c
branch:      2.7
parent:      79930:ad1cc596bedb
user:        Chris Jerdonek <chris.jerdonek at gmail.com>
date:        Thu Oct 25 17:26:10 2012 -0700
summary:
  Backport from 3.2: fix formatting of syntax description of function definition.

files:
  Doc/reference/compound_stmts.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -431,7 +431,7 @@
    funcdef: "def" `funcname` "(" [`parameter_list`] ")" ":" `suite`
    dotted_name: `identifier` ("." `identifier`)*
    parameter_list: (`defparameter` ",")*
-                 : (  "*" `identifier` [, "**" `identifier`]
+                 : (  "*" `identifier` ["," "**" `identifier`]
                  : | "**" `identifier`
                  : | `defparameter` [","] )
    defparameter: `parameter` ["=" `expression`]

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list