diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-07-01 14:05:02 (GMT) |
---|---|---|
committer | Antoine Pitrou <antoine@python.org> | 2019-07-01 14:05:02 (GMT) |
commit | e224d2865aa0f021b25d68de9a6c2be617341f4c (patch) | |
tree | 4fbb034f2fb12ac108bca06eea4498cf67521f46 | |
parent | be5bb52f5f2d4da4b9d6f42399f7275ab47910f3 (diff) | |
download | cpython-e224d2865aa0f021b25d68de9a6c2be617341f4c.zip cpython-e224d2865aa0f021b25d68de9a6c2be617341f4c.tar.gz cpython-e224d2865aa0f021b25d68de9a6c2be617341f4c.tar.bz2 |
bpo-37209: Add pickle entry for 3.8 whatsnew (GH-14503) (GH-14512)
(cherry picked from commit ec6c1bd0491590f3c0e2908a7b2dfb91b6acdae9)
Co-authored-by: Pierre Glaser <pierreglaser@msn.com>
-rw-r--r-- | Doc/whatsnew/3.8.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index f423765..1f5694c 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 -------- |