string exceptions are gone

This commit is contained in:
Benjamin Peterson 2009-01-08 03:39:46 +00:00
parent b90304acb9
commit 35b345484d

View file

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