Skip to content

There is no os.listdir() equivalent returning generator instead of list #55615

Description

@socketpair
mannequin
BPO 11406
Nosy @loewis, @Yhg1s, @rhettinger, @terryjreedy, @gpshead, @ncoghlan, @pitrou, @vstinner, @giampaolo, @tiran, @tjguk, @merwok, @Trundle, @benhoyt, @Bluehorn, @ethanfurman, @socketpair, @MojoVampire
Superseder
  • bpo-22524: PEP 471 implementation: os.scandir() directory scanning function
  • Files
  • issue11406-gps01.diff: Implements os.scandir(path='.') that iterates
  • issue11406-gps02.diff: implements os.scandir(path='.') that iterates
  • 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/gpshead'
    closed_at = <Date 2014-09-30.14:47:15.649>
    created_at = <Date 2011-03-05.10:17:58.318>
    labels = ['type-feature', 'library']
    title = 'There is no os.listdir() equivalent returning generator instead of list'
    updated_at = <Date 2014-09-30.14:47:15.647>
    user = 'https://github.com/socketpair'

    bugs.python.org fields:

    activity = <Date 2014-09-30.14:47:15.647>
    actor = 'ncoghlan'
    assignee = 'gregory.p.smith'
    closed = True
    closed_date = <Date 2014-09-30.14:47:15.649>
    closer = 'ncoghlan'
    components = ['Library (Lib)']
    creation = <Date 2011-03-05.10:17:58.318>
    creator = 'socketpair'
    dependencies = []
    files = ['29568', '29638']
    hgrepos = []
    issue_num = 11406
    keywords = ['patch']
    message_count = 77.0
    messages = ['130111', '130112', '130114', '130125', '130129', '130167', '130256', '130286', '130391', '130392', '130414', '130415', '130426', '130428', '130440', '130467', '130485', '130530', '130545', '130552', '130554', '130713', '130714', '130715', '155407', '183610', '183611', '183612', '183617', '183618', '183620', '185167', '185168', '185169', '185174', '185180', '185673', '185674', '185676', '185679', '185723', '188254', '188256', '188260', '188293', '188298', '188403', '188425', '188431', '188432', '188433', '188434', '188443', '188468', '188478', '188492', '188493', '188495', '188500', '188566', '188896', '200757', '200758', '200800', '204083', '221618', '221634', '221645', '221647', '221648', '221659', '221661', '227879', '227882', '227929', '227934', '227936']
    nosy_count = 22.0
    nosy_names = ['loewis', 'twouters', 'rhettinger', 'terry.reedy', 'gregory.p.smith', 'ncoghlan', 'pitrou', 'vstinner', 'giampaolo.rodola', 'christian.heimes', 'tim.golden', 'eric.araujo', 'Trundle', 'benhoyt', 'torsten', 'nvetoshkin', 'neologix', 'abacabadabacaba', 'ethan.furman', 'nailor', 'socketpair', 'josh.r']
    pr_nums = []
    priority = 'normal'
    resolution = 'rejected'
    stage = 'resolved'
    status = 'closed'
    superseder = '22524'
    type = 'enhancement'
    url = 'https://bugs.python.org/issue11406'
    versions = ['Python 3.5']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions