cpython/Misc/NEWS.d/next/Library/2023-12-29-22-29-34.gh-issu...

6 lines
356 B
ReStructuredText
Raw Normal View History

Add default implementations of :meth:`pickle.Pickler.persistent_id` and
:meth:`pickle.Unpickler.persistent_load` methods in the C implementation.
Calling ``super().persistent_id()`` and ``super().persistent_load()`` in
subclasses of the C implementation of :class:`pickle.Pickler` and
:class:`pickle.Unpickler` classes no longer causes infinite recursion.