[issue1481036] IOBaseError
Gregory P. Smith
report at bugs.python.org
Sat Apr 12 23:31:57 CEST 2008
Gregory P. Smith <greg at krypto.org> added the comment:
I don't think so.
socket.error has been changed to inherit from IOError in 2.6 (and thus
socket.sslerror which inherits from socket.error).
EOFError has not changed.
ftplib.all_errors is already a tuple of (ftplib.Error, socket.error,
IOError, EOFError) which demonstrates the issue...
Anyways there was discussion on python-dev around the time I made
socket.error extend IOError. Adding a new exception to the heirarchy
was frowned upon. EnvironmentError is already suitable for that task.
Perhaps EOFError should extend EnvironmentError as well?
----------
nosy: +gregory.p.smith
versions: +Python 2.6
_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1481036>
_____________________________________
More information about the Python-bugs-list
mailing list