]> granicus.if.org Git - python/commitdiff
bpo-37209: Add pickle entry for 3.8 whatsnew (GH-14503)
authorPierre Glaser <pierreglaser@msn.com>
Mon, 1 Jul 2019 13:51:57 +0000 (15:51 +0200)
committerAntoine Pitrou <antoine@python.org>
Mon, 1 Jul 2019 13:51:57 +0000 (15:51 +0200)
Doc/whatsnew/3.8.rst

index 5aab191f1a48694ea2b065357b9b8c27aded9f51..61e1d3da989daf53c1b6436d1a7d52d694f8fe03 100644 (file)
@@ -625,6 +625,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
 --------