Skip to content

gzip fails to read a gzipped file (ValueError: readline of closed file) #89638

Closed
@minstrelofc

Description

@minstrelofc
BPO 45475
Nosy @methane, @miss-islington, @tirkarthi
PRs
  • bpo-45475: Revert __iter__ optimization for GzipFile, BZ2File, and LZMAFile. #29016
  • [3.10] bpo-45475: Revert __iter__ optimization for GzipFile, BZ2File, and LZMAFile. (GH-29016) #29050
  • Files
  • UTF-8-test_for_gzip.txt.gz: gzip test file, just in case
  • 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 2021-10-19.03:32:27.805>
    created_at = <Date 2021-10-14.21:12:01.569>
    labels = ['type-bug', 'library', '3.10', '3.11']
    title = 'gzip fails to read a gzipped file (ValueError: readline of closed file)'
    updated_at = <Date 2021-10-19.03:32:27.804>
    user = 'https://bugs.python.org/minstrelofc'

    bugs.python.org fields:

    activity = <Date 2021-10-19.03:32:27.804>
    actor = 'methane'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-10-19.03:32:27.805>
    closer = 'methane'
    components = ['Library (Lib)']
    creation = <Date 2021-10-14.21:12:01.569>
    creator = 'minstrelofc'
    dependencies = []
    files = ['50358']
    hgrepos = []
    issue_num = 45475
    keywords = ['patch', '3.10regression']
    message_count = 5.0
    messages = ['403948', '403981', '404061', '404263', '404265']
    nosy_count = 4.0
    nosy_names = ['methane', 'miss-islington', 'xtreak', 'minstrelofc']
    pr_nums = ['29016', '29050']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue45475'
    versions = ['Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only 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