1 Aug
2018
1 Aug
'18
12:54 p.m.
On Mon, Jul 30, 2018 at 12:51 PM, Gottfried Müller <gottfried.mueller@gmx.de> wrote:
Hello,
I've got this message:
signal.signal(signal.SIGALARM, myHandler) AttributeError: module 'signal' has no attribute 'SIGALARM'
Hi Gottfried, There is a typo in the snippet you've posted. If you replace 'signal.SIGALARM' with 'signal.SIGALRM' (no 'a' after 'l') it should work:
import signal def handler(signum, frame): pass ... signal.signal(signal.SIGALRM, handler) 0
--Berker
I am using Manjaro/Python version 3.6.6.
Gottfried
_______________________________________________ docs mailing list docs@python.org https://mail.python.org/mailman/listinfo/docs