YoSTEALTH <[email protected]> added the comment:
Since I provide `OSError` with appropriate `errono`, it raises that error for
example:
import os
try:
no = -11
raise OSError(-no, os.strerror(-no))
except BlockingIOError as e:
print('Success:', e)
# Success: [Errno 11] Resource temporarily unavailable
except OSError as e:
print('Failed:', e)
should work the same to raise `TimeoutError` as well
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39673>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com