GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — enum.EnumMeta renaming · Issue #93064 · python/cpython

enum.EnumMeta renaming #93064

New issue
Copy link
New issue
Copy link
Closed
Closed
enum.EnumMeta renaming#93064
Copy link
Assignees
ethanfurman
Labels
3.11only security fixesonly security fixes

Description

@JelleZijlstra
JelleZijlstra
opened on May 22, 2022
Issue body actions

#22392 renamed the enum.EnumMeta metaclass to enum.EnumType. This originally went into 3.10 and was reverted (#27010), but remained on 3.11.

The renaming caused some problems for me with introspection code that looks at the name of classes to find their stubs (quora/pyanalyze#537).

I don't see anything wrong with the old name (EnumMeta). Could we return to the EnumMeta name to avoid gratuitously making upgrades harder?

cc @ethanfurman for enum

Activity

  1. JelleZijlstra
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    3.11only security fixesonly security fixes
    on May 22, 2022
  2. AlexWaygood
    assigned
    ethanfurman
    on May 22, 2022
  3. ethanfurman
    removed
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on May 23, 2022
  4. ethanfurman commented on May 23, 2022

    @ethanfurman
    ethanfurman
    on May 23, 2022
    Member
    More actions

    My apologies for the extra work. I renamed it (and kept the old name as an alias) because I personally found it confusing when working with enums to have, for example, SelectionEnum be of type EnumMeta and not EnumType.

    The change is not gratuitous.

  5. ethanfurman
    closed this as completedon May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @ethanfurman
    ethanfurman

Labels

3.11only security fixesonly security fixes

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.