Skip to content

__len__ called twice in the list() constructor #84010

Closed
@kimadeline

Description

@kimadeline
mannequin
BPO 39829
Nosy @brettcannon, @rhettinger, @terryjreedy, @methane, @ericsnowcurrently, @pablogsal, @sweeneyde, @godlygeek, @kimadeline, @thatbirdguythatuknownot
PRs
  • bpo-39829: Optimize __len__() being called twice in the list() constructor #31816
  • 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/pablogsal'
    closed_at = <Date 2022-03-14.01:24:29.714>
    created_at = <Date 2020-03-02.15:36:16.527>
    labels = ['interpreter-core', '3.11', '3.9', '3.10', 'performance']
    title = '__len__ called twice in the list() constructor'
    updated_at = <Date 2022-03-14.01:24:38.330>
    user = 'https://github.com/kimadeline'

    bugs.python.org fields:

    activity = <Date 2022-03-14.01:24:38.330>
    actor = 'methane'
    assignee = 'pablogsal'
    closed = True
    closed_date = <Date 2022-03-14.01:24:29.714>
    closer = 'methane'
    components = ['Interpreter Core']
    creation = <Date 2020-03-02.15:36:16.527>
    creator = 'kimiguel'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39829
    keywords = ['patch']
    message_count = 13.0
    messages = ['363186', '363188', '363588', '363745', '363746', '363747', '414724', '414727', '414840', '414889', '415026', '415111', '415112']
    nosy_count = 10.0
    nosy_names = ['brett.cannon', 'rhettinger', 'terry.reedy', 'methane', 'eric.snow', 'pablogsal', 'Dennis Sweeney', 'godlygeek', 'kimiguel', 'Crowthebird']
    pr_nums = ['31816']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue39829'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    Labels

    3.10only security fixes3.11only security fixes3.9only security fixesinterpreter-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