]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-26579: Add object.__getstate__(). (GH-2821)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 6 Apr 2022 17:00:14 +0000 (20:00 +0300)
committerGitHub <noreply@github.com>
Wed, 6 Apr 2022 17:00:14 +0000 (20:00 +0300)
commit884eba3c76916889fd6bff3b37b8552bfb4f9566
tree51fd55d6170cdff327ac11d70f1e5ff1aa7e735a
parentf82f9ce3239b9a7e6ffa278658dd9858f64a3c14
bpo-26579: Add object.__getstate__(). (GH-2821)

Copying and pickling instances of subclasses of builtin types
bytearray, set, frozenset, collections.OrderedDict, collections.deque,
weakref.WeakSet, and datetime.tzinfo now copies and pickles instance attributes
implemented as slots.
25 files changed:
Doc/library/pickle.rst
Doc/whatsnew/3.11.rst
Include/object.h
Lib/_weakrefset.py
Lib/collections/__init__.py
Lib/copyreg.py
Lib/datetime.py
Lib/email/headerregistry.py
Lib/test/datetimetester.py
Lib/test/pickletester.py
Lib/test/test_bytes.py
Lib/test/test_deque.py
Lib/test/test_descrtut.py
Lib/test/test_ordered_dict.py
Lib/test/test_set.py
Lib/test/test_weakset.py
Lib/test/test_xml_etree.py
Misc/NEWS.d/next/Core and Builtins/2017-07-23-11-28-45.bpo-26579.lpCY8R.rst [new file with mode: 0644]
Modules/_collectionsmodule.c
Modules/_datetimemodule.c
Objects/bytearrayobject.c
Objects/clinic/typeobject.c.h
Objects/odictobject.c
Objects/setobject.c
Objects/typeobject.c