diff options
author | Georg Brandl <georg@python.org> | 2007-09-01 12:38:06 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-01 12:38:06 (GMT) |
commit | 1617457cff847fed9fadb01f1acf6ba8bb621726 (patch) | |
tree | 1df36cebecfb525bda343ff2483ef8dc6cc873f1 /Doc/reference/compound_stmts.rst | |
parent | 321976b6e74db8f649e47f2b791c4bcc2a71d127 (diff) | |
download | cpython-1617457cff847fed9fadb01f1acf6ba8bb621726.zip cpython-1617457cff847fed9fadb01f1acf6ba8bb621726.tar.gz cpython-1617457cff847fed9fadb01f1acf6ba8bb621726.tar.bz2 |
Remove versionadded/versionchanged in the reference.
Diffstat (limited to 'Doc/reference/compound_stmts.rst')
-rw-r--r-- | Doc/reference/compound_stmts.rst | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 8aa4e02..045231b 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -211,6 +211,7 @@ The :keyword:`try` statement ============================ .. index:: statement: try +.. index:: keyword: except The :keyword:`try` statement specifies exception handlers and/or cleanup code for a group of statements: @@ -224,13 +225,6 @@ for a group of statements: try2_stmt: "try" ":" `suite` : "finally" ":" `suite` -.. versionchanged:: 2.5 - In previous versions of Python, :keyword:`try`...\ :keyword:`except`...\ - :keyword:`finally` did not work. :keyword:`try`...\ :keyword:`except` had to be - nested in :keyword:`try`...\ :keyword:`finally`. - -.. index:: keyword: except - The :keyword:`except` clause(s) specify one or more exception handlers. When no exception occurs in the :keyword:`try` clause, no exception handler is executed. When an exception occurs in the :keyword:`try` suite, a search for an exception @@ -317,8 +311,6 @@ The :keyword:`with` statement .. index:: statement: with -.. versionadded:: 2.5 - The :keyword:`with` statement is used to wrap the execution of a block with methods defined by a context manager (see section :ref:`context-managers`). This allows common :keyword:`try`...\ :keyword:`except`...\ :keyword:`finally` usage |