Ethan Furman added the comment: Ethan commented: ---------------- > 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.
Serhiy replied: --------------- > Without these changes pickling failed, but not because > _make_class_unpicklable. Well, the direct cause is that the Enum class in question failed to define __getnewargs__; the indirect cause is that without __getnewargs__ the metaclass will call _make_class_unpicklable. So neither the enum nor its members should pickle. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20534> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com