From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 1 Jul 2019 14:05:02 +0000 (-0700) Subject: bpo-37209: Add pickle entry for 3.8 whatsnew (GH-14503) (GH-14512) X-Git-Tag: v3.8.0b2~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e224d2865aa0f021b25d68de9a6c2be617341f4c;p=python bpo-37209: Add pickle entry for 3.8 whatsnew (GH-14503) (GH-14512) (cherry picked from commit ec6c1bd0491590f3c0e2908a7b2dfb91b6acdae9) Co-authored-by: Pierre Glaser --- diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index f423765c89..1f5694caf9 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -622,6 +622,20 @@ to a path. (Contributed by Joannah Nanjekye in :issue:`26978`) +pickle +------ + +Reduction methods can now include a 6th item in the tuple they return. This +item should specify a custom state-setting method that's called instead of the +regular ``__setstate__`` method. +(Contributed by Pierre Glaser and Olivier Grisel in :issue:`35900`) + +:mod:`pickle` extensions subclassing the C-optimized :class:`~pickle.Pickler` +can now override the pickling logic of functions and classes by defining the +special :meth:`~pickle.Pickler.reducer_override` method. +(Contributed by Pierre Glaser and Olivier Grisel in :issue:`35900`) + + plistlib --------