From: Benjamin Peterson Date: Thu, 8 Jan 2009 03:39:46 +0000 (+0000) Subject: string exceptions are gone X-Git-Tag: v2.7a1~2366 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35b345484dfb5377f8ca51e620db6b321972913b;p=thirdparty%2FPython%2Fcpython.git string exceptions are gone --- diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst index 457bef2b09e6..f04f194376dd 100644 --- a/Doc/whatsnew/2.6.rst +++ b/Doc/whatsnew/2.6.rst @@ -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