mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
string exceptions are gone
This commit is contained in:
parent
b90304acb9
commit
35b345484d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue