[issue20653] Pickle enums by name
Barry A. Warsaw
report at bugs.python.org
Mon Feb 17 16:27:09 CET 2014
Barry A. Warsaw added the comment:
On Feb 17, 2014, at 07:03 AM, Serhiy Storchaka wrote:
>
>Currently enums are pickled by values. It means that if the value of enum is
>platform depending, pickling one enum you can unpickle other enum on other
>platform.
It's probably a good idea to pickle by name by default, in order to support
the stdlib use case. Please just be sure to preserve the ability for user
code to pickle by value via subclassing.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20653>
_______________________________________
More information about the Python-bugs-list
mailing list