Skip to content

io.BufferedRWPair.closed broken; tries to call bool writer.closed property #48986

Closed

Description

@semanticist
BPO 4736
Nosy @benjaminp

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 2008-12-24.15:10:51.921>
created_at = <Date 2008-12-24.08:15:33.953>
labels = ['type-bug', 'library']
title = 'io.BufferedRWPair.closed broken; tries to call bool writer.closed property'
updated_at = <Date 2008-12-24.15:10:51.910>
user = 'https://bugs.python.org/semanticist'

bugs.python.org fields:

activity = <Date 2008-12-24.15:10:51.910>
actor = 'benjamin.peterson'
assignee = 'none'
closed = True
closed_date = <Date 2008-12-24.15:10:51.921>
closer = 'benjamin.peterson'
components = ['Library (Lib)']
creation = <Date 2008-12-24.08:15:33.953>
creator = 'semanticist'
dependencies = []
files = []
hgrepos = []
issue_num = 4736
keywords = []
message_count = 2.0
messages = ['78257', '78262']
nosy_count = 2.0
nosy_names = ['benjamin.peterson', 'semanticist']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue4736'
versions = ['Python 2.6', 'Python 3.0']

Activity

  1. semanticist commented on Dec 24, 2008

    semanticistmannequin
    MannequinAuthor

    The closed property of BufferedRWPair attempts to call the closed property
    of its writer as a method, which fails because writer.closed is a bool.

    The following code demonstrates the error:

    import socket
    socket.socket().makefile('rwb').closed
  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    type-bugAn unexpected behavior, bug, or error
    on Dec 24, 2008
  3. benjaminp commented on Dec 24, 2008

    @benjaminp
    Contributor

    Thanks for the report. Fixed in r67923.

  4. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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