[Python-checkins] bpo-37209: Add pickle entry for 3.8 whatsnew (GH-14503) (GH-14512)

Antoine Pitrou webhook-mailer at python.org
Mon Jul 1 10:05:10 EDT 2019


https://github.com/python/cpython/commit/e224d2865aa0f021b25d68de9a6c2be617341f4c
commit: e224d2865aa0f021b25d68de9a6c2be617341f4c
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Antoine Pitrou <antoine at python.org>
date: 2019-07-01T16:05:02+02:00
summary:

bpo-37209: Add pickle entry for 3.8 whatsnew (GH-14503) (GH-14512)

(cherry picked from commit ec6c1bd0491590f3c0e2908a7b2dfb91b6acdae9)

Co-authored-by: Pierre Glaser <pierreglaser at msn.com>

files:
M Doc/whatsnew/3.8.rst

diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index f423765c8917..1f5694caf9a4 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
 --------
 



More information about the Python-checkins mailing list