[issue28946] AttributeError: module 'signal' has no attribute 'SIGALRM'

2016-12-12 Thread Berker Peksag

Changes by Berker Peksag :


--
stage:  -> resolved

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28946] AttributeError: module 'signal' has no attribute 'SIGALRM'

2016-12-12 Thread dd

dd added the comment:

Yeah, I'm stupid. I named my file signal.py…

Sorry for the trouble and thanks for your help!

--
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28946] AttributeError: module 'signal' has no attribute 'SIGALRM'

2016-12-12 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

Can you import _signal? And what's the output of dir(_signal)?

Another possibility is that there's another signal.py in the search path. Could 
you also paste the output of repr(signal)?

By the way, here on Arch Linux, both signal.SIGINT and signal.SIGALRM are there.

--
nosy: +Chi Hsuan Yen

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28946] AttributeError: module 'signal' has no attribute 'SIGALRM'

2016-12-12 Thread dd

New submission from dd:

When I try to run the example at the very end of the signal documentation page 
[https://docs.python.org/3/library/signal.html#example] I get the error from 
the title: 
AttributeError: module 'signal' has no attribute 'SIGALRM'

The same thing happens for SIGINT, which is what I was trying to use in the 
first place.

I found the comment that many things in signal have been turned to enums 
[https://docs.python.org/3/library/signal.html#module-contents] but they don't 
seem to be documented anywhere.

I'm not sure if this is an actual bug or if these enums are just not 
documented, but It would be great if someone could look into this.

I run an up-to-date Manjaro Linux (an Arch-based distro) and Python 3.5.2 
(default, Nov  7 2016, 11:31:36) 
[GCC 6.2.1 20160830]

Let me know if anything is unclear.

--
messages: 282993
nosy: dd
priority: normal
severity: normal
status: open
title: AttributeError: module 'signal' has no attribute 'SIGALRM'
versions: Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com