This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: io.BufferedRWPair.closed broken; tries to call bool writer.closed property
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.0, Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, semanticist
Priority: normal Keywords:

Created on 2008-12-24 08:15 by semanticist, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg78257 - (view) Author: Miles (semanticist) Date: 2008-12-24 08:15
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
msg78262 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-12-24 15:10
Thanks for the report. Fixed in r67923.
History
Date User Action Args
2022-04-11 14:56:43adminsetgithub: 48986
2008-12-24 15:10:51benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg78262
nosy: + benjamin.peterson
2008-12-24 08:15:34semanticistcreate