Skip to content

Commit e224d28

Browse files
miss-islingtonpierreglaser
authored andcommitted
bpo-37209: Add pickle entry for 3.8 whatsnew (GH-14503) (GH-14512)
(cherry picked from commit ec6c1bd) Co-authored-by: Pierre Glaser <[email protected]>
1 parent be5bb52 commit e224d28

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Doc/whatsnew/3.8.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,20 @@ to a path.
622622
(Contributed by Joannah Nanjekye in :issue:`26978`)
623623

624624

625+
pickle
626+
------
627+
628+
Reduction methods can now include a 6th item in the tuple they return. This
629+
item should specify a custom state-setting method that's called instead of the
630+
regular ``__setstate__`` method.
631+
(Contributed by Pierre Glaser and Olivier Grisel in :issue:`35900`)
632+
633+
:mod:`pickle` extensions subclassing the C-optimized :class:`~pickle.Pickler`
634+
can now override the pickling logic of functions and classes by defining the
635+
special :meth:`~pickle.Pickler.reducer_override` method.
636+
(Contributed by Pierre Glaser and Olivier Grisel in :issue:`35900`)
637+
638+
625639
plistlib
626640
--------
627641

0 commit comments

Comments
 (0)