Skip to content

Commit

Permalink
pythongh-70766: Mention the obj getstate caveat in 3.11 What's new.
Browse files Browse the repository at this point in the history
  • Loading branch information
gpshead committed Aug 23, 2023
1 parent 5d18715 commit 9fe47d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@ Other Language Changes
:class:`collections.OrderedDict`, :class:`collections.deque`,
:class:`weakref.WeakSet`, and :class:`datetime.tzinfo` now copies and
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`.)

.. _whatsnew311-pythonsafepath:
Expand Down

0 comments on commit 9fe47d5

Please sign in to comment.