[issue39673] Map errno==ETIME to TimeoutError

Giampaolo Rodola' report at bugs.python.org
Mon May 25 16:38:04 EDT 2020


Giampaolo Rodola' <g.rodola at gmail.com> added the comment:

I'm -1 about TimeoutError because the concept of "timeout" is generic enough to be often implemented as a custom exception, which poses questions re. backward/forward compatibilty. E.g. in psutil I have "TimeoutExpired", also providing a "seconds" attribute. Also I've probably never seen ETIME / ETIMEDOUT happening, whereas AFAIU the point of PEP 3151 was to create mappings for the most common errnos.

----------
nosy: +giampaolo.rodola

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


More information about the Python-bugs-list mailing list