From 865cd640bb3d24210a1c78ed14a7a1819ca74b68 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 16 Oct 2008 21:38:48 +0000 Subject: #4083: add "as" to except handler grammar as per PEP 3110. --- 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 0794755..408298d 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` -- cgit v0.12