This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: 'module' object has no attribute 'SIGALRM' - singal module
Type: behavior Stage: resolved
Components: Windows Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: paul.moore, ronaldoussoren, rvallury, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2016-08-11 08:17 by rvallury, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg272420 - (view) Author: Ram Vallury (rvallury) * Date: 2016-08-11 08:17
'module' object has no attribute 'SIGALRM'

SIGALRM is not identified in windows, python 2.7.
There is no explicit mention of this in documentation as well.

===
$ python
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import signal
>>> def handler(signum, frame):
...     print 'Signal handler called with signal', signum
...     raise IOError("Couldn't open device!")
...
>>> signal.signal(signal.SIGALRM, handler)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'SIGALRM'
>>>
====
msg272426 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2016-08-11 08:57
The documentation for the "SIG*" constants says:

"""
Note that not all systems define the same set of signal names; only those names defined by the system are defined by this module.
"""
History
Date User Action Args
2022-04-11 14:58:34adminsetgithub: 71922
2016-08-11 13:16:01r.david.murraysetstatus: open -> closed
resolution: not a bug
stage: resolved
2016-08-11 08:57:42ronaldoussorensetnosy: + ronaldoussoren
messages: + msg272426
2016-08-11 08:17:22rvallurycreate