[New-bugs-announce] [issue21382] Signal module doesnt raises ValueError Exception

rsevcan report at bugs.python.org
Tue Apr 29 10:17:16 CEST 2014


New submission from rsevcan:

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

----------
assignee: docs at python
components: Documentation
messages: 217486
nosy: docs at python, rsevcan
priority: normal
severity: normal
status: open
title: Signal module doesnt raises ValueError Exception
type: enhancement
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21382>
_______________________________________


More information about the New-bugs-announce mailing list