Steve Dower <steve.do...@python.org> added the comment:

> If WaitForSingleObjectEx fails, do you think the system error code should be 
> raised as an OSError?

It's invalid (and unfixable) internal state, so perhaps SystemError makes the 
most sense? There's no point catching it in most cases.

Or since we don't want to worry too much about formatting the message, why not 
raise the OSError with the helper function and then immediately chain it with a 
fixed SystemError?

----------

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

Reply via email to