[Python-checkins] r66940 - python/trunk/Doc/reference/compound_stmts.rst
georg.brandl
python-checkins at python.org
Thu Oct 16 23:38:48 CEST 2008
Author: georg.brandl
Date: Thu Oct 16 23:38:48 2008
New Revision: 66940
Log:
#4083: add "as" to except handler grammar as per PEP 3110.
Modified:
python/trunk/Doc/reference/compound_stmts.rst
Modified: python/trunk/Doc/reference/compound_stmts.rst
==============================================================================
--- python/trunk/Doc/reference/compound_stmts.rst (original)
+++ python/trunk/Doc/reference/compound_stmts.rst Thu Oct 16 23:38:48 2008
@@ -221,7 +221,7 @@
.. productionlist::
try_stmt: try1_stmt | try2_stmt
try1_stmt: "try" ":" `suite`
- : ("except" [`expression` ["," `target`]] ":" `suite`)+
+ : ("except" [`expression` [("as" | ",") `target`]] ":" `suite`)+
: ["else" ":" `suite`]
: ["finally" ":" `suite`]
try2_stmt: "try" ":" `suite`
More information about the Python-checkins
mailing list