]> granicus.if.org Git - python/commitdiff
bpo-37209: Add pickle entry for 3.8 whatsnew (GH-14503) (GH-14512)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 1 Jul 2019 14:05:02 +0000 (07:05 -0700)
committerAntoine Pitrou <antoine@python.org>
Mon, 1 Jul 2019 14:05:02 +0000 (16:05 +0200)
(cherry picked from commit ec6c1bd0491590f3c0e2908a7b2dfb91b6acdae9)

Co-authored-by: Pierre Glaser <pierreglaser@msn.com>
Doc/whatsnew/3.8.rst

index f423765c8917653ee040064d71deb2c8b7100da5..1f5694caf9a46e85184fd5308675c7999bf5de60 100644 (file)
@@ -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
 --------