#4083: add "as" to except handler grammar as per PEP 3110.

This commit is contained in:
Georg Brandl 2008-10-16 21:38:48 +00:00
parent 19cc944e45
commit 865cd640bb
1 changed files with 1 additions and 1 deletions

View File

@ -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`