[Python-ideas] IDEA: do not alter default SIGINT handling

Georg Brandl g.brandl at gmx.net
Tue Sep 15 14:55:03 CEST 2009


Nick Coghlan schrieb:
> [Greg]
>>> What do you mean? Ctrl-C interrupts time.sleep()
>>> okay in my Python (on MacOSX).
> 
> [ryles]
>> it doesn't work on Windows XP.
> 
> It is, indeed, Windows. (I didn't realise the *nix based OS's didn't
> have this problem - an artifact of mostly using Python on Windows,
> despite the fact that I do my development *of* Python on Linux).

But looking at timemodule.c, there's lots of code that says it's there
for "Ctrl+C" events/interruptions on Windows. Did that work at any time?

Georg

-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.




More information about the Python-ideas mailing list