[issue42413] Replace custom exception socket.timeout with TimeoutError

Andrew Svetlov report at bugs.python.org
Sat Nov 21 07:59:52 EST 2020


Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:

I know that I just create OSError() with errno set to None.

My question is: has the standard library such code examples already?
In other words, how many third-party code will be broken by catching OSError with errno=None?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42413>
_______________________________________


More information about the Python-bugs-list mailing list