mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-70766: Mention the object getstate caveat in 3.11 What's new. (#108379)
This commit is contained in:
parent
4890f65ecf
commit
b6be18812c
1 changed files with 4 additions and 0 deletions
|
@ -459,6 +459,10 @@ Other Language Changes
|
||||||
:class:`collections.OrderedDict`, :class:`collections.deque`,
|
:class:`collections.OrderedDict`, :class:`collections.deque`,
|
||||||
:class:`weakref.WeakSet`, and :class:`datetime.tzinfo` now copies and
|
:class:`weakref.WeakSet`, and :class:`datetime.tzinfo` now copies and
|
||||||
pickles instance attributes implemented as :term:`slots <__slots__>`.
|
pickles instance attributes implemented as :term:`slots <__slots__>`.
|
||||||
|
This change has an unintended side effect: It trips up a small minority
|
||||||
|
of existing Python projects not expecting :meth:`object.__getstate__` to
|
||||||
|
exist. See the later comments on :gh:`70766` for discussions of what
|
||||||
|
workarounds such code may need.
|
||||||
(Contributed by Serhiy Storchaka in :issue:`26579`.)
|
(Contributed by Serhiy Storchaka in :issue:`26579`.)
|
||||||
|
|
||||||
.. _whatsnew311-pythonsafepath:
|
.. _whatsnew311-pythonsafepath:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue