Skip to content

Commit 9fe47d5

Browse files
committed
pythongh-70766: Mention the obj getstate caveat in 3.11 What's new.
1 parent 5d18715 commit 9fe47d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/whatsnew/3.11.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,10 @@ Other Language Changes
459459
:class:`collections.OrderedDict`, :class:`collections.deque`,
460460
:class:`weakref.WeakSet`, and :class:`datetime.tzinfo` now copies and
461461
pickles instance attributes implemented as :term:`slots <__slots__>`.
462+
This change has an unintended side effect: It trips up a small minority
463+
of existing Python projects not expecting :meth:`object.__getstate__` to
464+
exist. See the later comments on :gh:`70766` for discussions of what
465+
workarounds such code may need.
462466
(Contributed by Serhiy Storchaka in :issue:`26579`.)
463467

464468
.. _whatsnew311-pythonsafepath:

0 commit comments

Comments
 (0)