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.

Author dabeaz
Recipients amaury.forgeotdarc, bow, dabeaz, mdehoon, pitrou, serhiy.storchaka
Date 2013-01-15.20:54:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1358283255.8.0.0497941550955.issue16723@psf.upfronthosting.co.za>
In-reply-to
Content
I have run into this bug myself.  Agree that a file-like object should never report itself as closed unless .close() has been explicitly called on it.   HTTPResponse should not return itself as closed after the end-of-file has been reached.

I think there is also a bug in the implementation of TextIOWrapper as well.  Even if the underlying file reports itself as closed, previously read and buffered data should be processed first before reporting an error about the file being closed.
History
Date User Action Args
2013-01-15 20:54:15dabeazsetrecipients: + dabeaz, amaury.forgeotdarc, mdehoon, pitrou, serhiy.storchaka, bow
2013-01-15 20:54:15dabeazsetmessageid: <1358283255.8.0.0497941550955.issue16723@psf.upfronthosting.co.za>
2013-01-15 20:54:15dabeazlinkissue16723 messages
2013-01-15 20:54:15dabeazcreate