]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[Enum] improve pickle support (#26666)
authorEthan Furman <ethan@stoneleaf.us>
Fri, 11 Jun 2021 08:26:32 +0000 (01:26 -0700)
committerGitHub <noreply@github.com>
Fri, 11 Jun 2021 08:26:32 +0000 (01:26 -0700)
commite9726314df44a6e63ed653b95514646c6ff607b6
tree5310e29e4ae0e1b183ed76ed5a149db82ea734a5
parent3ce35bfbbe29664942f9a8c50c177a4575a31934
[Enum] improve pickle support (#26666)

search all bases for a __reduce__ style method; if a __new__ method is
found first the enum will be made unpicklable
Lib/enum.py
Lib/test/test_enum.py
Misc/NEWS.d/next/Library/2021-06-10-21-04-14.bpo-44342.nNH5jA.rst [new file with mode: 0644]