This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author YoSTEALTH
Recipients YoSTEALTH, eric.smith
Date 2020-02-18.10:04:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582020276.7.0.349071052355.issue39673@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-02-18 10:04:36YoSTEALTHsetrecipients: + YoSTEALTH, eric.smith
2020-02-18 10:04:36YoSTEALTHsetmessageid: <1582020276.7.0.349071052355.issue39673@roundup.psfhosted.org>
2020-02-18 10:04:36YoSTEALTHlinkissue39673 messages
2020-02-18 10:04:36YoSTEALTHcreate