bpo-26579: Add object.__getstate__(). by serhiy-storchaka · Pull Request #2821 · python/cpython

@serhiy-storchaka

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.

@serhiy-storchaka

ZackerySpytz

MaxwellDupre

@serhiy-storchaka

@serhiy-storchaka

warsaw

rwgk added a commit to google/clif that referenced this pull request

Jul 13, 2023
Ignore the `object.__getstate__()` added with python/cpython#2821 because it is not suitable for extension types.

GitHub testing: #64

TGP testing is not needed:

* This CL only changes a .cc file.

* The change is a no-op for Python <= 3.10.

PiperOrigin-RevId: 547855607