Skip to content

os.listdir(bytes) gives a list of bytes, but os.listdir(buffer) gives a list of unicodes #75062

@arigo

Description

@arigo
mannequin
BPO 30879
Nosy @arigo, @alex, @serhiy-storchaka
PRs
  • bpo-30879: os.listdir() and os.scandir() now emit bytes names when #2634
  • [3.6] bpo-30879: os.listdir() and os.scandir() now emit bytes names when (GH-2634) #2656
  • [3.5] bpo-30879: os.listdir() and os.scandir() now emit bytes names when (GH-2634) #2657
  • 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 2017-07-11.04:44:12.866>
    created_at = <Date 2017-07-08.16:27:45.508>
    labels = ['3.7', 'type-bug', 'library']
    title = 'os.listdir(bytes) gives a list of bytes, but os.listdir(buffer) gives a list of unicodes'
    updated_at = <Date 2017-07-11.04:44:12.866>
    user = 'https://github.com/arigo'

    bugs.python.org fields:

    activity = <Date 2017-07-11.04:44:12.866>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-07-11.04:44:12.866>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2017-07-08.16:27:45.508>
    creator = 'arigo'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30879
    keywords = []
    message_count = 7.0
    messages = ['297960', '297962', '297963', '297984', '298111', '298116', '298118']
    nosy_count = 3.0
    nosy_names = ['arigo', 'alex', 'serhiy.storchaka']
    pr_nums = ['2634', '2656', '2657']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue30879'
    versions = ['Python 3.5', 'Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifestdlibStandard 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