]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
string exceptions are gone
authorBenjamin Peterson <benjamin@python.org>
Thu, 8 Jan 2009 03:39:46 +0000 (03:39 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 8 Jan 2009 03:39:46 +0000 (03:39 +0000)
Doc/whatsnew/2.6.rst

index 457bef2b09e6be2d2a187204907e886ac14d2cc4..f04f194376dd404e0e42b8cf9e827f673e04da0f 100644 (file)
@@ -3213,6 +3213,9 @@ that may require changes to your code:
   set ``__hash__ = None`` in their definitions to indicate
   the fact.
 
+* String exceptions have been removed.  Attempting to use them raises a
+  :exc:`TypeError`.
+
 * The :meth:`__init__` method of :class:`collections.deque`
   now clears any existing contents of the deque
   before adding elements from the iterable.  This change makes the