[issue20653] Pickle enums by name
Ethan Furman
report at bugs.python.org
Fri Feb 21 11:35:55 CET 2014
Ethan Furman added the comment:
Antoine,
If the mixed-in class defines __reduce_ex__, and the Enum class defines __reduce__, pickle will see that the Enum class has both, and will call the _ex__ method. It is, therefore, the preferred method (at least by pickle, which is what we are discussing). If you don't believe me, try it and see.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20653>
_______________________________________
More information about the Python-bugs-list
mailing list