Skip to content

enum error messages should use __qualname__ #78624

Description

@doerwalter
BPO 34443
Nosy @warsaw, @doerwalter, @ethanfurman, @serhiy-storchaka, @enedil, @miss-islington, @orlnub123, @danishprakash, @UnderscoreAsterisk
PRs
  • bpo-34443: return __qualname__ in enum __repr__ #8989
  • bpo-34443: Change enum __repr__s and __str__s to use the fully qualified name #9011
  • bpo-34443: Use __qualname__ instead of __name__ in enum exception messages. #14809
  • [3.7] bpo-34443: Use __qualname__ instead of __name__ in enum exception messages. (GH-14809) #19166
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/ethanfurman'
    closed_at = <Date 2020-03-25.19:51:53.479>
    created_at = <Date 2018-08-20.16:34:28.016>
    labels = ['easy', '3.8', 'type-feature', 'library']
    title = 'enum error messages should use __qualname__'
    updated_at = <Date 2020-03-25.19:54:02.508>
    user = 'https://github.com/doerwalter'

    bugs.python.org fields:

    activity = <Date 2020-03-25.19:54:02.508>
    actor = 'miss-islington'
    assignee = 'ethan.furman'
    closed = True
    closed_date = <Date 2020-03-25.19:51:53.479>
    closer = 'ethan.furman'
    components = ['Library (Lib)']
    creation = <Date 2018-08-20.16:34:28.016>
    creator = 'doerwalter'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34443
    keywords = ['patch', 'easy']
    message_count = 15.0
    messages = ['323799', '323801', '323822', '324110', '324313', '324402', '324442', '325006', '325007', '325020', '325023', '348014', '348026', '348048', '348123']
    nosy_count = 10.0
    nosy_names = ['barry', 'doerwalter', 'eli.bendersky', 'ethan.furman', 'serhiy.storchaka', 'enedil', 'miss-islington', 'orlnub123', 'danishprakash', 'underscore_asterisk']
    pr_nums = ['8989', '9011', '14809', '19166']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue34443'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    Labels

    3.8 (EOL)end of lifeeasystdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions