Skip to content

IntEnum __format__ behavior can't be overridden through __str__ #81660

@thatneat

Description

@thatneat
mannequin
BPO 37479
Nosy @ericvsmith, @ethanfurman, @thatneat
PRs
  • bpo-37479: on Enum subclasses with mixins, __format__ uses overridden __str__ #14545
  • [3.8] bpo-37479: Enum - use correct __format__ (GH-14545) #22227
  • [3.7] bpo-37479: Enum - user correct __format__ (GH-14545) #22228
  • 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-09-13.20:51:07.553>
    created_at = <Date 2019-07-01.23:24:11.546>
    labels = ['3.8', 'type-bug', 'library', '3.9']
    title = "IntEnum __format__ behavior can't be overridden through __str__"
    updated_at = <Date 2020-09-13.20:51:07.551>
    user = 'https://github.com/thatneat'

    bugs.python.org fields:

    activity = <Date 2020-09-13.20:51:07.551>
    actor = 'ethan.furman'
    assignee = 'ethan.furman'
    closed = True
    closed_date = <Date 2020-09-13.20:51:07.553>
    closer = 'ethan.furman'
    components = ['Library (Lib)']
    creation = <Date 2019-07-01.23:24:11.546>
    creator = 'jason.curtis'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37479
    keywords = ['patch']
    message_count = 7.0
    messages = ['347089', '347090', '347094', '347096', '347291', '376848', '376851']
    nosy_count = 3.0
    nosy_names = ['eric.smith', 'ethan.furman', 'jason.curtis']
    pr_nums = ['14545', '22227', '22228']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue37479'
    versions = ['Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    Labels

    3.8 (EOL)end of life3.9only security fixesstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions