[issue33332] Expose valid signal set (sigfillset()): add signal.valid_signals()
STINNER Victor
report at bugs.python.org
Fri May 4 07:03:38 EDT 2018
STINNER Victor <vstinner at redhat.com> added the comment:
FYI on Fedora 27, I get:
>>> signal.NSIG
65
>>> set(range(0, signal.NSIG)) - signal.valid_signals()
{0, 33, 32}
>>> len(signal.valid_signals())
62
>>> min(signal.valid_signals())
<Signals.SIGHUP: 1>
>>> max(signal.valid_signals())
<Signals.SIGRTMAX: 64>
So signals 0, 32 and 33 are invalid, the first valid signal is 1 and the last is 64.
----------
nosy: +vstinner
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33332>
_______________________________________
More information about the Python-bugs-list
mailing list