Issue 4736: io.BufferedRWPair.closed broken; tries to call bool writer.closed property

Issue4736

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