Skip to content

Implement __length_hint__() on map() and filter() to optimize list(map) and list(filter) #71015

@vstinner

Description

@vstinner
BPO 26828
Nosy @rhettinger, @terryjreedy, @vstinner, @alex, @serhiy-storchaka, @MSeifert04, @nmusolino
PRs
  • bpo-26828: __length_hint__ method for map and zip #1077
  • bpo-26828: Add __length_hint__() to builtin map iterator #14432
  • 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/rhettinger'
    closed_at = <Date 2017-04-26.15:11:22.749>
    created_at = <Date 2016-04-22.12:12:40.220>
    labels = ['performance']
    title = 'Implement __length_hint__() on map() and filter() to optimize list(map) and list(filter)'
    updated_at = <Date 2019-06-27.23:33:52.101>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2019-06-27.23:33:52.101>
    actor = 'vstinner'
    assignee = 'rhettinger'
    closed = True
    closed_date = <Date 2017-04-26.15:11:22.749>
    closer = 'rhettinger'
    components = []
    creation = <Date 2016-04-22.12:12:40.220>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 26828
    keywords = []
    message_count = 16.0
    messages = ['264007', '264008', '264010', '264040', '264052', '264053', '291461', '291768', '292287', '292288', '292289', '292311', '292357', '292358', '346779', '346788']
    nosy_count = 7.0
    nosy_names = ['rhettinger', 'terry.reedy', 'vstinner', 'alex', 'serhiy.storchaka', 'MSeifert', 'nmusolino']
    pr_nums = ['1077', '14432']
    priority = 'normal'
    resolution = 'rejected'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue26828'
    versions = ['Python 3.6']

    Metadata

    Metadata

    Assignees

    Labels

    performancePerformance or resource usage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions