Skip to content

io.BufferedReader:peek() closes underlying file, breaking peek/read expectations #88853

Description

@liquidpele
BPO 44687
Nosy @zooba, @miss-islington, @AngstyDuck, @liquidpele
PRs
  • bpo-44687: Fix unintended closing file error when peeking a BufferedReader object #28457
  • [3.10] bpo-44687: Ensure BufferedReader objects with unread buffers can peek even when the underlying file is closed (GH-28457) #28685
  • [3.9] bpo-44687: Ensure BufferedReader objects with unread buffers can peek even when the underlying file is closed (GH-28457) #28686
  • 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-01.20:46:58.225>
    created_at = <Date 2021-07-20.20:42:34.702>
    labels = ['3.9', 'expert-IO']
    title = 'io.BufferedReader:peek() closes underlying file, breaking peek/read expectations'
    updated_at = <Date 2021-10-01.20:46:58.225>
    user = 'https://github.com/liquidpele'

    bugs.python.org fields:

    activity = <Date 2021-10-01.20:46:58.225>
    actor = 'steve.dower'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-10-01.20:46:58.225>
    closer = 'steve.dower'
    components = ['IO']
    creation = <Date 2021-07-20.20:42:34.702>
    creator = 'liquidpele'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44687
    keywords = ['patch']
    message_count = 9.0
    messages = ['397907', '402512', '402581', '402591', '402604', '403028', '403029', '403032', '403034']
    nosy_count = 4.0
    nosy_names = ['steve.dower', 'miss-islington', 'AngstyDuck', 'liquidpele']
    pr_nums = ['28457', '28685', '28686']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue44687'
    versions = ['Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions