[issue20653] Pickle enums by name

Ethan Furman report at bugs.python.org
Fri Feb 21 20:22:34 CET 2014


Ethan Furman added the comment:

Antoine commented:
------------------
> The pickle docs don't mention __reduce_ex__ as being preferred, as in "you should
> use this one", on the contrary.


Are we reading the same docs?

http://docs.python.org/dev/library/pickle.html#object.__reduce_ex__
-------------------------------------------------------------------
[...] When defined, pickle will prefer it over the __reduce__() method.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20653>
_______________________________________


More information about the Python-bugs-list mailing list