Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Yes, I think this is a problem. It is expected that an instance of OSError has 
valid errno. OSError is a merge of several old exception types, some of them 
did have errno, and others did not.

Maybe add BaseTimeoutError and make TimeoutError a subclass of BaseTimeoutError 
and OSError?

There as also several CancelledError, and exceptions with similar names and 
purpose, like asyncio.IncompleteReadError and http.client.IncompleteRead.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42413>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to