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, ethan.furman, pitrou, python-dev, serhiy.storchaka
Date 2014-02-07.22:12:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391811133.0.0.930264318942.issue20534@psf.upfronthosting.co.za>
In-reply-to
Content
Pickle will prefer the __reduce_ex__() method over the __reduce__() method. If base class defined the __reduce_ex__() method, Enum.__reduce__() will be ignored.

> I left the test for test_subclasses_without_getnewargs alone as the point of that test is to make sure that _make_class_unpicklable is working properly, not to see if we can somehow get any of it to pickle.

Without these changes pickling failed, but not because _make_class_unpicklable.

I added other comments on Rietveld.
History
Date User Action Args
2014-02-07 22:12:13serhiy.storchakasetrecipients: + serhiy.storchaka, barry, pitrou, alexandre.vassalotti, ethan.furman, python-dev
2014-02-07 22:12:13serhiy.storchakasetmessageid: <1391811133.0.0.930264318942.issue20534@psf.upfronthosting.co.za>
2014-02-07 22:12:12serhiy.storchakalinkissue20534 messages
2014-02-07 22:12:12serhiy.storchakacreate