Message199245
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:19 | r.david.murray | set | recipients:
+ r.david.murray, terry.reedy, docs@python, fviard |
2013-10-08 20:24:19 | r.david.murray | set | messageid: <1381263859.92.0.334299176977.issue19154@psf.upfronthosting.co.za> |
2013-10-08 20:24:19 | r.david.murray | link | issue19154 messages |
2013-10-08 20:24:19 | r.david.murray | create | |
|