]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35900: Enable custom reduction callback registration in _pickle (GH-12499)
authorPierre Glaser <pierreglaser@msn.com>
Wed, 8 May 2019 21:08:25 +0000 (23:08 +0200)
committerAntoine Pitrou <antoine@python.org>
Wed, 8 May 2019 21:08:25 +0000 (23:08 +0200)
commit289f1f80ee87a4baf4567a86b3425fb3bf73291d
treeb8145681f26ca875572165d143c6f2e5bd1e8906
parent9a4135e939bc223f592045a38e0f927ba170da32
bpo-35900: Enable custom reduction callback registration in _pickle (GH-12499)

Enable custom reduction callback registration for functions and classes in
_pickle.c, using the new Pickler's attribute ``reducer_override``.
Doc/library/pickle.rst
Lib/pickle.py
Lib/test/pickletester.py
Lib/test/test_pickle.py
Misc/NEWS.d/next/Library/2019-03-22-22-40-00.bpo-35900.oiee0o.rst [new file with mode: 0644]
Modules/_pickle.c