summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2012-10-13 02:44:35 (GMT)
committerRaymond Hettinger <python@rcn.com>2012-10-13 02:44:35 (GMT)
commitd9edd82b7fbf3260cf6a1d2dee71a57db81553e5 (patch)
tree90dc9f68bdf5d0f1097be7ec8b0d5f9c1cd3da37
parent99716166b15bd0a35f5d5a3b84b34b978cc28aef (diff)
downloadcpython-d9edd82b7fbf3260cf6a1d2dee71a57db81553e5.zip
cpython-d9edd82b7fbf3260cf6a1d2dee71a57db81553e5.tar.gz
cpython-d9edd82b7fbf3260cf6a1d2dee71a57db81553e5.tar.bz2
String exceptions aren't just deprecated, they are gone.
-rw-r--r--Doc/reference/compound_stmts.rst5
1 files changed, 1 insertions, 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. [#]_