[Python-checkins] cpython (2.7): Issue #22243: fix except grammar in reference.

terry.reedy python-checkins at python.org
Sun Aug 24 01:30:54 CEST 2014


http://hg.python.org/cpython/rev/5496bf8972b6
changeset:   92213:5496bf8972b6
branch:      2.7
parent:      92207:410439e94a40
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Sat Aug 23 19:29:40 2014 -0400
summary:
  Issue #22243: fix except grammar in reference.

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
@@ -218,7 +218,7 @@
 .. productionlist::
    try_stmt: try1_stmt | try2_stmt
    try1_stmt: "try" ":" `suite`
-            : ("except" [`expression` [("as" | ",") `target`]] ":" `suite`)+
+            : ("except" [`expression` [("as" | ",") `identifier`]] ":" `suite`)+
             : ["else" ":" `suite`]
             : ["finally" ":" `suite`]
    try2_stmt: "try" ":" `suite`

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


More information about the Python-checkins mailing list