Message383703
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. |
|
| Date |
User |
Action |
Args |
| 2020-12-24 20:00:05 | ethan.furman | set | recipients:
+ ethan.furman, gvanrossum, ncoghlan, r.david.murray, serhiy.storchaka, VA, alexey-muranov |
| 2020-12-24 20:00:05 | ethan.furman | set | messageid: <1608840005.37.0.93628562777.issue32768@roundup.psfhosted.org> |
| 2020-12-24 20:00:05 | ethan.furman | link | issue32768 messages |
| 2020-12-24 20:00:05 | ethan.furman | create | |
|