Kaydet (Commit) 865cd640 authored tarafından Georg Brandl's avatar Georg Brandl

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

üst 19cc944e
...@@ -221,7 +221,7 @@ for a group of statements: ...@@ -221,7 +221,7 @@ for a group of statements:
.. productionlist:: .. productionlist::
try_stmt: try1_stmt | try2_stmt try_stmt: try1_stmt | try2_stmt
try1_stmt: "try" ":" `suite` try1_stmt: "try" ":" `suite`
: ("except" [`expression` ["," `target`]] ":" `suite`)+ : ("except" [`expression` [("as" | ",") `target`]] ":" `suite`)+
: ["else" ":" `suite`] : ["else" ":" `suite`]
: ["finally" ":" `suite`] : ["finally" ":" `suite`]
try2_stmt: "try" ":" `suite` try2_stmt: "try" ":" `suite`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment