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 christian.heimes
Recipients AlexWaygood, christian.heimes, ethan.furman
Date 2021-12-19.22:57:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639954637.03.0.671463781046.issue46132@roundup.psfhosted.org>
In-reply-to
Content
The primary purpose of __slots__ is not to limit attribute assignment. Slots are useful to define types that have a smaller memory footprint than types.

You are getting the expected behavior. Enum parent class does not have __slots__ and therefore automatically has a __dict__. You could make an argument to add __slots__ to Enum, but that would be a new feature for 3.11.
History
Date User Action Args
2021-12-19 22:57:17christian.heimessetrecipients: + christian.heimes, ethan.furman, AlexWaygood
2021-12-19 22:57:17christian.heimessetmessageid: <1639954637.03.0.671463781046.issue46132@roundup.psfhosted.org>
2021-12-19 22:57:17christian.heimeslinkissue46132 messages
2021-12-19 22:57:16christian.heimescreate