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 ethan.furman
Recipients alexandre.vassalotti, barry, eli.bendersky, ethan.furman, gvanrossum, larry, pitrou, python-dev, serhiy.storchaka
Date 2014-02-21.10:35:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392978955.77.0.775025662301.issue20653@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-02-21 10:35:55ethan.furmansetrecipients: + ethan.furman, gvanrossum, barry, pitrou, larry, alexandre.vassalotti, eli.bendersky, python-dev, serhiy.storchaka
2014-02-21 10:35:55ethan.furmansetmessageid: <1392978955.77.0.775025662301.issue20653@psf.upfronthosting.co.za>
2014-02-21 10:35:55ethan.furmanlinkissue20653 messages
2014-02-21 10:35:55ethan.furmancreate