From d9edd82b7fbf3260cf6a1d2dee71a57db81553e5 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 12 Oct 2012 19:44:35 -0700 Subject: String exceptions aren't just deprecated, they are gone. --- Doc/reference/compound_stmts.rst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index da27ebc..e98e261 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -238,10 +238,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. [#]_ -- cgit v0.12