This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients alexandre.vassalotti, barry, eli.bendersky, ethan.furman, larry, pitrou, serhiy.storchaka
Date 2014-02-17.07:03:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392620636.86.0.161132453218.issue20653@psf.upfronthosting.co.za>
In-reply-to
Content
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.

Here is a patch which makes enum pickling by name. It also get rid of not needed __getnewargs__().

See also discussions in issue20534 and on Python-Dev: http://comments.gmane.org/gmane.comp.python.devel/145536.
History
Date User Action Args
2014-02-17 07:03:56serhiy.storchakasetrecipients: + serhiy.storchaka, barry, pitrou, larry, alexandre.vassalotti, eli.bendersky, ethan.furman
2014-02-17 07:03:56serhiy.storchakasetmessageid: <1392620636.86.0.161132453218.issue20653@psf.upfronthosting.co.za>
2014-02-17 07:03:56serhiy.storchakalinkissue20653 messages
2014-02-17 07:03:56serhiy.storchakacreate