Commit ddb391af authored by Georg Brandl's avatar Georg Brandl

#11317: fix wrong info about string exceptions.

parent 7ff4216e
...@@ -610,14 +610,10 @@ Notes: ...@@ -610,14 +610,10 @@ Notes:
.. versionadded:: 2.5 .. versionadded:: 2.5
Deprecation of String Exceptions String Exceptions
================================ =================
.. index:: single: BaseException (built-in exception)
All exceptions built into Python or provided in the standard library are derived
from :exc:`BaseException`.
String exceptions are still supported in the interpreter to allow existing code .. versionchanged:: 2.6
to run unmodified, but this will also change in a future release. All exceptions to be raised or caught must be derived from :exc:`BaseException`.
Trying to raise a string exception now raises :exc:`TypeError`.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment