diff options
author | Gregory P. Smith <greg@krypto.org> | 2023-08-23 22:00:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-23 22:00:09 (GMT) |
commit | b6be18812c68fce5ab56c266dc5fc5a3cceb09c0 (patch) | |
tree | f3d82cf03556bfeec3ffe77c73e43cbfda0e126d /Doc | |
parent | 4890f65ecf119a18df926d42982c8c6d02f0b9fd (diff) | |
download | cpython-b6be18812c68fce5ab56c266dc5fc5a3cceb09c0.zip cpython-b6be18812c68fce5ab56c266dc5fc5a3cceb09c0.tar.gz cpython-b6be18812c68fce5ab56c266dc5fc5a3cceb09c0.tar.bz2 |
gh-70766: Mention the object getstate caveat in 3.11 What's new. (#108379)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.11.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 58ce881..cc5cfee 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -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: |