[issue12011] The signal module should raise OSError for OS-related exceptions, not RuntimeError

Antoine Pitrou report at bugs.python.org
Tue May 10 16:19:28 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> Patch: signal.signal() and signal.siginterrupt() raise an OSError,
> instead of a RuntimeError: OSError has an errno attribute.
> 
> ----------
> keywords: +patch
> Added file: http://bugs.python.org/file21939/signal_oserror.patch

Looks good to me.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12011>
_______________________________________


More information about the Python-bugs-list mailing list