summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libexcs.tex
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-01-30 21:34:36 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-01-30 21:34:36 (GMT)
commit129bd52146c2380a4887c6bbf066113a195c60da (patch)
tree9f4a250df8167eae4bb877cb2a3e85bb83b32b0b /Doc/lib/libexcs.tex
parenta05153683c0712ff62d3bdcc33c879dd49ed7ddc (diff)
downloadcpython-129bd52146c2380a4887c6bbf066113a195c60da.zip
cpython-129bd52146c2380a4887c6bbf066113a195c60da.tar.gz
cpython-129bd52146c2380a4887c6bbf066113a195c60da.tar.bz2
No more raising of string exceptions!
The next step of PEP 352 (for 2.6) causes raising a string exception to trigger a TypeError. Trying to catch a string exception raises a DeprecationWarning. References to string exceptions has been removed from the docs since they are now just an error.
Diffstat (limited to 'Doc/lib/libexcs.tex')
-rw-r--r--Doc/lib/libexcs.tex16
1 files changed, 0 insertions, 16 deletions
diff --git a/Doc/lib/libexcs.tex b/Doc/lib/libexcs.tex
index 6d2a3c5..b793fd3 100644
--- a/Doc/lib/libexcs.tex
+++ b/Doc/lib/libexcs.tex
@@ -10,22 +10,6 @@ module never needs to be imported explicitly: the exceptions are
provided in the built-in namespace as well as the \module{exceptions}
module.
-\begin{notice}
-In past versions of Python string exceptions were supported. In
-Python 1.5 and newer versions, all standard exceptions have been
-converted to class objects and users are encouraged to do the same.
-String exceptions will raise a \code{DeprecationWarning} in Python 2.5 and
-newer.
-In future versions, support for string exceptions will be removed.
-
-Two distinct string objects with the same value are considered different
-exceptions. This is done to force programmers to use exception names
-rather than their string value when specifying exception handlers.
-The string value of all built-in exceptions is their name, but this is
-not a requirement for user-defined exceptions or exceptions defined by
-library modules.
-\end{notice}
-
For class exceptions, in a \keyword{try}\stindex{try} statement with
an \keyword{except}\stindex{except} clause that mentions a particular
class, that clause also handles any exception classes derived from