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.

Author rsevcan
Recipients docs@python, rsevcan
Date 2014-04-29.08:17:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398759436.39.0.420418396293.issue21382@psf.upfronthosting.co.za>
In-reply-to
Content
signal.signal() built-in function doesnt throws a ValueError exception in Windows when is called with a different signal than SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV, or SIGTERM, as it is written in the documentation.

https://docs.python.org/2/library/signal.html#signal.signal
https://docs.python.org/3/library/signal.html#signal.signal

It throws an AttributeError Exception

>>> import signal
>>> import sys
>>> sys.platform
'win32'
>>> signal.signal(signal.SIGPIPE, lambda signum, frame: sys.exit(1))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'SIGPIPE'
>>>

Regards
History
Date User Action Args
2014-04-29 08:17:16rsevcansetrecipients: + rsevcan, docs@python
2014-04-29 08:17:16rsevcansetmessageid: <1398759436.39.0.420418396293.issue21382@psf.upfronthosting.co.za>
2014-04-29 08:17:16rsevcanlinkissue21382 messages
2014-04-29 08:17:15rsevcancreate