cpython
cpython copied to clipboard
[Enum] make some private attributes public
Feature or enhancement
Make _EnumDict, _EnumDict._member_names, and possibly other private names public.
This is to make subclassing EnumType and other advanced behavior supported, such as having multiple values per member.
Linked PRs
- gh-112514
- gh-121720
The PR has been merged, shall we close this, or is there more to do?
Closing, thanks for the reminder.
EnumDict is now public and included in Enum.__all__, but it is not documented at https://docs.python.org/3.13/library/enum.html or mentioned in the What's New for 3.13.
I am working on documenting this.