[Python-Dev] [Python-checkins] r83763 - in python/branches/py3k: Doc/library/signal.rst Lib/test/test_signal.py Misc/NEWS Modules/signalmodule.c (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Aug 7 12:09:16 CEST 2010


Hirokazu Yamamoto wrote:

#define SIG(name) if (signum != SIG##name) SIG(ABRT) SIG(FPE) SIG(ILL) SIG(INT) SIG(SEGV) SIG(TERM) { PyErrSetString(PyExcValueError, "signal number out of range");

"Out of range" doesn't seem like quite the right message here, because it suggests a contiguous range of legal values, which isn't the case.

-- Greg



More information about the Python-Dev mailing list