Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
semanticist mannequin opened this issue Dec 24, 2008 · 2 comments
Closed

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

semanticist mannequin opened this issue Dec 24, 2008 · 2 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@semanticist
Copy link
Mannequin

semanticist mannequin commented Dec 24, 2008

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']

@semanticist
Copy link
Mannequin Author

semanticist mannequin commented Dec 24, 2008

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

@semanticist semanticist mannequin added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Dec 24, 2008
@benjaminp
Copy link
Contributor

Thanks for the report. Fixed in r67923.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant