Skip to content

stdlib wrongly uses len() for bytes-like object #88605

Closed
@animalize

Description

@animalize
mannequin
BPO 44439
Nosy @pitrou, @serhiy-storchaka, @animalize, @miss-islington, @iritkatriel
PRs
  • bpo-44439: BZ2File.write() / LZMAFile.write() handle buffer protocol correctly #26764
  • [3.10] bpo-44439: BZ2File.write() / LZMAFile.write() handle buffer protocol correctly (GH-26764) #26845
  • [3.9] bpo-44439: BZ2File.write()/LZMAFile.write() handle length correctly #26846
  • bpo-44439: _ZipWriteFile.write() handle buffer protocol correctly #29468
  • [3.9] bpo-44439: _ZipWriteFile.write() handle buffer protocol correctly (GH-29468) #31755
  • [3.10] bpo-44439: _ZipWriteFile.write() handle buffer protocol correctly (GH-29468) #31756
  • 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 2022-03-19.13:19:59.142>
    created_at = <Date 2021-06-17.05:05:24.162>
    labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
    title = 'stdlib wrongly uses len() for bytes-like object'
    updated_at = <Date 2022-03-19.13:19:59.141>
    user = 'https://github.com/animalize'

    bugs.python.org fields:

    activity = <Date 2022-03-19.13:19:59.141>
    actor = 'malin'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-03-19.13:19:59.142>
    closer = 'malin'
    components = ['Library (Lib)']
    creation = <Date 2021-06-17.05:05:24.162>
    creator = 'malin'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44439
    keywords = ['patch']
    message_count = 14.0
    messages = ['395971', '395973', '395976', '396305', '396309', '396334', '396335', '396336', '405948', '414737', '414742', '414743', '415528', '415549']
    nosy_count = 6.0
    nosy_names = ['pitrou', 'nadeem.vawda', 'serhiy.storchaka', 'malin', 'miss-islington', 'iritkatriel']
    pr_nums = ['26764', '26845', '26846', '29468', '31755', '31756']
    priority = 'normal'
    resolution = 'later'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue44439'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9only security fixesstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions