cpython icon indicating copy to clipboard operation
cpython copied to clipboard

[Enum] make some private attributes public

Open ethanfurman opened this issue 2 years ago • 4 comments

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

ethanfurman avatar Nov 23 '23 03:11 ethanfurman

The PR has been merged, shall we close this, or is there more to do?

hugovk avatar Dec 11 '23 16:12 hugovk

Closing, thanks for the reminder.

ethanfurman avatar Dec 11 '23 18:12 ethanfurman

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.

JelleZijlstra avatar Jun 01 '24 03:06 JelleZijlstra

I am working on documenting this.

u2rafi avatar Jul 13 '24 09:07 u2rafi