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 r.david.murray
Recipients docs@python, fviard, r.david.murray, terry.reedy
Date 2013-10-08.20:24:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
OK, I've looked at the docs and code, and as far as I can see this bug does not exist in Python3.  Or at least in 3.4, which is the only place I'd feel safe about making a change to the exception type.

To summarize: in 3.4 socket logic is based on RawIOBase, as is HTTPResponse.  And RawIOBase checks to see if the file is closed and raises a ValueError if it is, when fileno is called on the 'fp' attribute of the HTTPResponse.  At least, that's what I think based on reading the code.

So, unless you can reproduce the error in 3.3 and/or 3.4, I think we should close this issue as out of date, since as Terry said there is a non-trivial danger of backward incompatibility if we were to change the exception type in 2.7.
Date User Action Args
2013-10-08 20:24:19r.david.murraysetrecipients: + r.david.murray, terry.reedy, docs@python, fviard
2013-10-08 20:24:19r.david.murraysetmessageid: <>
2013-10-08 20:24:19r.david.murraylinkissue19154 messages
2013-10-08 20:24:19r.david.murraycreate