Skip to content

Commit 869dc14

Browse files
[3.11] gh-70766: Mention the object getstate caveat in 3.11 What's new. (GH-108379) (#108385)
gh-70766: Mention the object getstate caveat in 3.11 What's new. (GH-108379) (cherry picked from commit b6be188) Co-authored-by: Gregory P. Smith <[email protected]>
1 parent 34ef75d commit 869dc14

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/whatsnew/3.11.rst

+4
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)