Skip to content

[Enum] make some private attributes public #112328

Closed

Description

@ethanfurman

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

Activity

  1. added
    type-featureA feature request or enhancement
    stdlibStandard Library Python modules in the Lib/ directory
    3.13only security fixes
    on Nov 23, 2023
  2. self-assigned this
    on Nov 23, 2023
  3. added a commit that references this issue on Dec 5, 2023
  4. hugovk commented on Dec 11, 2023

    @hugovk
    Member

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

  5. ethanfurman commented on Dec 11, 2023

    @ethanfurman
    MemberAuthor

    Closing, thanks for the reminder.

  6. added a commit that references this issue on Feb 11, 2024
  7. JelleZijlstra commented on Jun 1, 2024

    @JelleZijlstra
    Member

    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.

  8. u2rafi commented on Jul 13, 2024

    @u2rafi
    Contributor

    I am working on documenting this.

  9. added a commit that references this issue on Sep 2, 2024
  10. added a commit that references this issue on Dec 19, 2024
  11. added a commit that references this issue on Dec 20, 2024
  12. added 2 commits that reference this issue on Dec 23, 2024
  13. added a commit that references this issue on Dec 24, 2024
  14. added 2 commits that reference this issue on Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.13only security fixesdeferred-blockerdocsDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions