[issue21076] Turn signal.SIG* constants into enums
Serhiy Storchaka
report at bugs.python.org
Sat Jan 24 13:59:12 CET 2015
Serhiy Storchaka added the comment:
Now signal.signal() accepts inappropriate types.
>>> signal.signal(signal.SIGHUP, 0.0)
<Handlers.SIG_DFL: 0>
>>> signal.signal(signal.SIGHUP, '0')
<Handlers.SIG_DFL: 0>
In 3.4 it raised an exception.
----------
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21076>
_______________________________________
More information about the Python-bugs-list
mailing list