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

Antoine Pitrou webhook-mailer at python.org
Mon Jul 1 09:52:01 EDT 2019


https://github.com/python/cpython/commit/ec6c1bd0491590f3c0e2908a7b2dfb91b6acdae9
commit: ec6c1bd0491590f3c0e2908a7b2dfb91b6acdae9
branch: master
author: Pierre Glaser <pierreglaser at msn.com>
committer: Antoine Pitrou <antoine at python.org>
date: 2019-07-01T15:51:57+02:00
summary:

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

files:
M Doc/whatsnew/3.8.rst

diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index 5aab191f1a48..61e1d3da989d 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -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
 --------
 



More information about the Python-checkins mailing list