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 AlexWaygood
Recipients AlexWaygood, christian.heimes, ethan.furman
Date 2021-12-19.23:14:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639955690.83.0.506477542036.issue46132@roundup.psfhosted.org>
In-reply-to
Content
Ah, of course, I'm an idiot — I forgot that a class could not prevent the creation of __dict__ unless the parent class also had __slots__. Thanks, Christian.

In which case: consider this a feature request to consider adding __slots__ to enum.Enum: for faster attribute access, lower memory footprint, and the ability to define __slots__ in custom Enum classes.
History
Date User Action Args
2021-12-19 23:14:50AlexWaygoodsetrecipients: + AlexWaygood, christian.heimes, ethan.furman
2021-12-19 23:14:50AlexWaygoodsetmessageid: <1639955690.83.0.506477542036.issue46132@roundup.psfhosted.org>
2021-12-19 23:14:50AlexWaygoodlinkissue46132 messages
2021-12-19 23:14:50AlexWaygoodcreate