]> granicus.if.org Git - python/commit
bpo-35900: Add a state_setter arg to save_reduce (GH-12588)
authorPierre Glaser <pierreglaser@msn.com>
Wed, 8 May 2019 19:40:25 +0000 (21:40 +0200)
committerAntoine Pitrou <antoine@python.org>
Wed, 8 May 2019 19:40:25 +0000 (21:40 +0200)
commit65d98d0f53f558d7c799098da0abf376068c15fd
tree4354710a0984cd5afca6e5745309b988d1054213
parent39889864c09741909da4ec489459d0197ea8f1fc
bpo-35900: Add a state_setter arg to save_reduce (GH-12588)

Allow reduction methods to return a 6-item tuple where the 6th item specifies a
custom state-setting method that's called instead of the regular
``__setstate__`` method.
Doc/library/pickle.rst
Lib/pickle.py
Lib/test/pickletester.py
Misc/NEWS.d/next/Library/2019-03-27-15-09-00.bpo-35900.fh56UU.rst [new file with mode: 0644]
Modules/_pickle.c