mirror of https://github.com/python/cpython
#4083: add "as" to except handler grammar as per PEP 3110.
This commit is contained in:
parent
19cc944e45
commit
865cd640bb
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue