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 VA, alexey-muranov, ethan.furman, gvanrossum, ncoghlan, r.david.murray, serhiy.storchaka
Date 2020-12-24.20:00:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608840005.37.0.93628562777.issue32768@roundup.psfhosted.org>
In-reply-to
Content
A use-case for writable bases:

__init_subclass__ is called in type.__new__, which means that for Enum __init_subclass__ is called before the members have been added.  To work around this I am currently (3.10) adding in a _NoInitSubclass to the bases before type.__new__ is called, and then removing it.

A better solution to that problem would be a way to tell type.__new__ /not/ to call __init_subclass__, but I don't have that option at this point.
History
Date User Action Args
2020-12-24 20:00:05ethan.furmansetrecipients: + ethan.furman, gvanrossum, ncoghlan, r.david.murray, serhiy.storchaka, VA, alexey-muranov
2020-12-24 20:00:05ethan.furmansetmessageid: <1608840005.37.0.93628562777.issue32768@roundup.psfhosted.org>
2020-12-24 20:00:05ethan.furmanlinkissue32768 messages
2020-12-24 20:00:05ethan.furmancreate