From: Georg Brandl Date: Thu, 16 Oct 2008 21:38:48 +0000 (+0000) Subject: #4083: add "as" to except handler grammar as per PEP 3110. X-Git-Tag: v2.7a1~2725 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=865cd640bb3d24210a1c78ed14a7a1819ca74b68;p=thirdparty%2FPython%2Fcpython.git #4083: add "as" to except handler grammar as per PEP 3110. --- diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 07947551401a..408298d031c2 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -221,7 +221,7 @@ for a group of statements: .. 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`