]> granicus.if.org Git - python/commitdiff
#11317: fix wrong info about string exceptions.
authorGeorg Brandl <georg@python.org>
Fri, 25 Feb 2011 11:19:59 +0000 (11:19 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 25 Feb 2011 11:19:59 +0000 (11:19 +0000)
Doc/c-api/exceptions.rst

index 3ed1313e4f535bcc26de4c6ca38fe17df4c16a14..e9ced0bdb0d9485c0afa37f94bda2c14886dea83 100644 (file)
@@ -610,14 +610,10 @@ Notes:
    .. versionadded:: 2.5
 
 
-Deprecation of 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
+=================
 
-String exceptions are still supported in the interpreter to allow existing code
-to run unmodified, but this will also change in a future release.
+.. versionchanged:: 2.6
+   All exceptions to be raised or caught must be derived from :exc:`BaseException`.
+   Trying to raise a string exception now raises :exc:`TypeError`.