From 1617457cff847fed9fadb01f1acf6ba8bb621726 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 1 Sep 2007 12:38:06 +0000 Subject: Remove versionadded/versionchanged in the reference. --- Doc/reference/compound_stmts.rst | 10 +-------- Doc/reference/datamodel.rst | 45 ++++------------------------------------ Doc/reference/expressions.rst | 7 ------- 3 files changed, 5 insertions(+), 57 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 diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index ce7704a..1e8f3be 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -508,9 +508,6 @@ Callable types Most of the attributes labelled "Writable" check the type of the assigned value. - .. versionchanged:: 2.4 - ``__name__`` is now writable. - Function objects also support getting and setting arbitrary attributes, which can be used, for example, to attach metadata to functions. Regular attribute dot-notation is used to get and set such attributes. *Note that the current @@ -550,9 +547,6 @@ Callable types ``im_func.__name__``); :attr:`__module__` is the name of the module the method was defined in, or ``None`` if unavailable. - .. versionchanged:: 2.2 - :attr:`im_self` used to refer to the class that defined the method. - .. index:: single: __doc__ (method attribute) single: __name__ (method attribute) @@ -1029,8 +1023,6 @@ Internal types slice. Missing or out-of-bounds indices are handled in a manner consistent with regular slices. - .. versionadded:: 2.3 - Static method objects Static method objects provide a way of defeating the transformation of function objects to method objects described above. A static method object is a wrapper @@ -1240,8 +1232,6 @@ Basic customization object.__gt__(self, other) object.__ge__(self, other) - .. versionadded:: 2.1 - These are the so-called "rich comparison" methods, and are called for comparison operators in preference to :meth:`__cmp__` below. The correspondence between operator symbols and method names is as follows: ``x