Skip to content

ZipFile.open() should not reopen the underlying file #58307

@kasal

Description

@kasal
mannequin
BPO 14099
Nosy @loewis, @pitrou, @larryhastings, @benjaminp, @mcepl, @merwok, @bitdancer, @dw, @serhiy-storchaka, @eryksun
Files
  • Proposed-fix-of-issue14099.patch: proposed fix, against latest source tree
  • Proposed-fix-of-issue14099-second.patch: Updated patch
  • zipfile_concurrent_read_1.diff: Draft patch (from dw) against 524a004e93dd
  • zipfile_share_file.patch
  • bench_zip.py
  • zipfile_tellable.patch: Support tellable but unseekable files in ZipFile.writestr()
  • zipfile_threadsafe.patch: Makes ZipFile threadsafe
  • 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/serhiy-storchaka'
    closed_at = <Date 2015-01-26.12:05:57.524>
    created_at = <Date 2012-02-23.10:46:31.740>
    labels = ['type-bug', 'library']
    title = 'ZipFile.open() should not reopen the underlying file'
    updated_at = <Date 2015-02-05.21:24:35.655>
    user = 'https://bugs.python.org/kasal'

    bugs.python.org fields:

    activity = <Date 2015-02-05.21:24:35.655>
    actor = 'eryksun'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2015-01-26.12:05:57.524>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2012-02-23.10:46:31.740>
    creator = 'kasal'
    dependencies = []
    files = ['24617', '24624', '37191', '37197', '37198', '37732', '37733']
    hgrepos = []
    issue_num = 14099
    keywords = ['patch']
    message_count = 30.0
    messages = ['154058', '154077', '154110', '154123', '176844', '176853', '176855', '176857', '176858', '176859', '231132', '231181', '231191', '231473', '231475', '231918', '232032', '232035', '232048', '232055', '232068', '232070', '233553', '234142', '234143', '234146', '234735', '234736', '235183', '235453']
    nosy_count = 17.0
    nosy_names = ['loewis', 'alanmcintyre', 'pitrou', 'ocean-city', 'larry', 'benjamin.peterson', 'mcepl', 'durin42', 'eric.araujo', 'Arfrever', 'r.david.murray', 'python-dev', 'Matt.Mackall', 'kasal', 'dw', 'serhiy.storchaka', 'eryksun']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue14099'
    versions = ['Python 3.5']

    Metadata

    Metadata

    Labels

    stdlibStandard 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