diff options
author | Georg Brandl <georg@python.org> | 2008-10-16 21:38:48 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-10-16 21:38:48 (GMT) |
commit | 865cd640bb3d24210a1c78ed14a7a1819ca74b68 (patch) | |
tree | 744debea2915190a804da1827dc2853505a73c4f /Doc/reference | |
parent | 19cc944e450414e24f774d17a68110bee40eedfd (diff) | |
download | cpython-865cd640bb3d24210a1c78ed14a7a1819ca74b68.zip cpython-865cd640bb3d24210a1c78ed14a7a1819ca74b68.tar.gz cpython-865cd640bb3d24210a1c78ed14a7a1819ca74b68.tar.bz2 |
#4083: add "as" to except handler grammar as per PEP 3110.
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/compound_stmts.rst | 2 |
1 files changed, 1 insertions, 1 deletions
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` |