From: Terry Jan Reedy Date: Sat, 23 Aug 2014 23:29:40 +0000 (-0400) Subject: Issue #22243: fix except grammar in reference. X-Git-Tag: v2.7.9rc1~276 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a58b255a8ef1aa21982df49e029ee2acd2c67e20;p=thirdparty%2FPython%2Fcpython.git Issue #22243: fix except grammar in reference. --- diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 08230fa498d2..125102471999 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -218,7 +218,7 @@ for a group of statements: .. 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`