[issue42413] Replace custom exception socket.timeout with TimeoutError
STINNER Victor
report at bugs.python.org
Mon Nov 23 04:48:41 EST 2020
STINNER Victor <vstinner at python.org> added the comment:
I see this issue as a follow-up of PEP 3151 which started to uniformize IOError, OSError and many variants that we had in Python 2.
socket.timeout was introduced as a subclass of TimeoutError according to:
https://www.python.org/dev/peps/pep-3151/#new-exception-classes
In Python 3.9, socket.timeout and TimeoutError are subclasses of OSError but are different. I agree that it was confusion.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42413>
_______________________________________
More information about the Python-bugs-list
mailing list