From fc357f4f81e1fa6bcff22b9de64205b65dc0bbd7 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 11 Aug 2007 07:54:32 +0000 Subject: [PATCH] Remove a few mentions of deprecated features long gone. --- Doc-3k/reference/compound_stmts.rst | 5 +---- Doc-3k/reference/expressions.rst | 7 +++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Doc-3k/reference/compound_stmts.rst b/Doc-3k/reference/compound_stmts.rst index 01851b045..e7587f6cc 100644 --- a/Doc-3k/reference/compound_stmts.rst +++ b/Doc-3k/reference/compound_stmts.rst @@ -240,10 +240,7 @@ present, must be last; it matches any exception. For an except clause with an expression, that expression is evaluated, and the clause matches the exception if the resulting object is "compatible" with the exception. An object is compatible with an exception if it is the class or a base class of the exception -object, a tuple containing an item compatible with the exception, or, in the -(deprecated) case of string exceptions, is the raised string itself (note that -the object identities must match, i.e. it must be the same string object, not -just a string with the same value). +object or a tuple containing an item compatible with the exception. If no except clause matches the exception, the search for an exception handler continues in the surrounding code and on the invocation stack. [#]_ diff --git a/Doc-3k/reference/expressions.rst b/Doc-3k/reference/expressions.rst index c18d51877..28c1406ee 100644 --- a/Doc-3k/reference/expressions.rst +++ b/Doc-3k/reference/expressions.rst @@ -856,10 +856,9 @@ also overloaded by string and unicode objects to perform string formatting (also known as interpolation). The syntax for string formatting is described in the Python Library Reference, section :ref:`string-formatting`. -.. deprecated:: 2.3 - The floor division operator, the modulo operator, and the :func:`divmod` - function are no longer defined for complex numbers. Instead, convert to a - floating point number using the :func:`abs` function if appropriate. +The floor division operator, the modulo operator, and the :func:`divmod` +function are not defined for complex numbers. Instead, convert to a +floating point number using the :func:`abs` function if appropriate. .. index:: single: addition