diff options
author | Pierre Glaser <pierreglaser@msn.com> | 2019-07-01 13:51:57 (GMT) |
---|---|---|
committer | Antoine Pitrou <antoine@python.org> | 2019-07-01 13:51:57 (GMT) |
commit | ec6c1bd0491590f3c0e2908a7b2dfb91b6acdae9 (patch) | |
tree | a861afd0312be8aae6405d3fe876040962692dd9 /Doc | |
parent | 72cd653c4ed7a4f8f8fb06ac364b08a97085a2b5 (diff) | |
download | cpython-ec6c1bd0491590f3c0e2908a7b2dfb91b6acdae9.zip cpython-ec6c1bd0491590f3c0e2908a7b2dfb91b6acdae9.tar.gz cpython-ec6c1bd0491590f3c0e2908a7b2dfb91b6acdae9.tar.bz2 |
bpo-37209: Add pickle entry for 3.8 whatsnew (GH-14503)
Diffstat (limited to 'Doc')
-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 5aab191..61e1d3d 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 -------- |