[issue24788] HTTPException is derived from Exception instead of IOError

2015-08-26 Thread Pastafarianist
Pastafarianist added the comment: My bad then. How do we proceed with introducing a change to the standard library? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24788

[issue24788] HTTPException is derived from Exception instead of IOError

2015-08-25 Thread Pastafarianist
Pastafarianist added the comment: I agree that the five exception types you mentioned (UnknownProtocol, UnknownTransferEncoding, IncompleteRead, BadStatusLine, LineTooLong) should be derived from IOError. EOFError is probably not a good choice here. It's not something I would expect to see

[issue24788] HTTPException is derived from Exception instead of IOError

2015-08-04 Thread Pastafarianist
New submission from Pastafarianist: In both Python 2 and Python 3, HTTPException is derived from Exception. This is not quite convenient, since catching all connection-related errors while performing an HTTP query requires catching both IOError (which is subclassed by socket.error