Skip to content

Optimize the for y in [x] idiom in comprehensions #77037

@serhiy-storchaka

Description

@serhiy-storchaka
BPO 32856
Nosy @rhettinger, @ncoghlan, @scoder, @benjaminp, @stevendaprano, @serhiy-storchaka, @MojoVampire
PRs
  • bpo-32856: Optimize the idiom for assignment in comprehensions. #5695
  • bpo-32856: Optimize the idiom for assignment in comprehensions. #5695
  • bpo-32856: Optimize the assignment idiom in comprehensions. #16814
  • 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 = None
    closed_at = <Date 2020-02-12.10:22:26.022>
    created_at = <Date 2018-02-16.08:41:23.170>
    labels = ['interpreter-core', '3.9', 'performance']
    title = 'Optimize the `for y in [x]` idiom in comprehensions'
    updated_at = <Date 2020-02-12.10:22:26.021>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2020-02-12.10:22:26.021>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-02-12.10:22:26.022>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2018-02-16.08:41:23.170>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32856
    keywords = ['patch', 'patch']
    message_count = 13.0
    messages = ['312228', '312229', '312230', '312246', '312247', '337393', '354753', '354764', '354996', '355237', '356758', '359346', '361874']
    nosy_count = 7.0
    nosy_names = ['rhettinger', 'ncoghlan', 'scoder', 'benjamin.peterson', 'steven.daprano', 'serhiy.storchaka', 'josh.r']
    pr_nums = ['5695', '5695', '16814']
    priority = 'low'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue32856'
    versions = ['Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.9 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usage

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions