Skip to content

enum: _generate_next_value_ is not called if its definition occurs after calls to auto() #84206

Description

@edd07
mannequin
BPO 40025
Nosy @warsaw, @ethanfurman, @srinivasreddy, @hongweipeng, @miss-islington, @edd07, @ethanonstott, @jonnyhsu, @ankeshsaha
PRs
  • bpo-40025: Require _generate_next_value_ to be defined before members #19098
  • [3.7] bpo-40025: Require _generate_next_value_ to be defined before members (GH-19098) #19762
  • [3.8] bpo-40025: Require _generate_next_value_ to be defined before members (GH-19098) #19763
  • bpo-40025:The behavior is the same when _generate_next_value_ is defined afte… #19904
  • bpo-40025: acknowledge Weipeng Hong's contributions #22284
  • bpo-40025: _auto_called cleanup #22285
  • [3.9] bpo-40025: _auto_called cleanup (GH-22285) #22287
  • [3.8] bpo-40025: _auto_called cleanup (GH-22285) #22286
  • Files
  • Issue40025.PNG: Screenshot of the code and output
  • 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-17.00:32:48.974>
    created_at = <Date 2020-03-20.11:25:03.987>
    labels = ['easy', 'type-bug', 'library', '3.10']
    title = 'enum: _generate_next_value_ is not called if its definition occurs after calls to auto()'
    updated_at = <Date 2020-09-17.00:32:48.972>
    user = 'https://github.com/edd07'

    bugs.python.org fields:

    activity = <Date 2020-09-17.00:32:48.972>
    actor = 'ethan.furman'
    assignee = 'ethan.furman'
    closed = True
    closed_date = <Date 2020-09-17.00:32:48.974>
    closer = 'ethan.furman'
    components = ['Library (Lib)']
    creation = <Date 2020-03-20.11:25:03.987>
    creator = 'edd07'
    dependencies = []
    files = ['49014']
    hgrepos = []
    issue_num = 40025
    keywords = ['patch', 'easy']
    message_count = 13.0
    messages = ['364665', '364707', '364776', '364784', '364967', '365321', '367538', '367547', '370127', '371324', '372002', '372010', '377032']
    nosy_count = 11.0
    nosy_names = ['barry', 'eli.bendersky', 'docs@python', 'ethan.furman', 'thatiparthy', 'hongweipeng', 'miss-islington', 'edd07', 'Ethan Onstott', 'Jonathan Hsu', 'ankeshsaha']
    pr_nums = ['19098', '19762', '19763', '19904', '22284', '22285', '22287', '22286']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue40025'
    versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    Labels

    3.10only security fixeseasystdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions