[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)

Hirokazu Yamamoto ocean-city at m2.ccsnet.ne.jp
Sat Aug 7 15:20:25 CEST 2010


On 2010/08/07 19:09, Greg Ewing wrote:

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.

I agree, I suppose "invalid signal number" or something is better.



More information about the Python-Dev mailing list