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

Terry Reedy tjreedy at udel.edu
Tue Sep 15 22:47:00 CEST 2009


ryles wrote:
> On Sep 15, 9:34 am, Nick Coghlan <ncogh... at gmail.com> wrote:
>> Actually, it looks like it works with a modern version of Python (I just
>> checked with the 2.6 install on my home Windows machine).
>>
> 
> I'm using 2.6.2 on XP SP3 and time.sleep() is not interrupted with
> Control-C.

Win32XP, Py3.1

Keyboard Interrupt is immediately caught in console.
In IDLE, only caught when sleep ends.

 >>> while 1:pass

Traceback (most recent call last):
   File "<pyshell#12>", line 1, in <module>
     while 1:pass
KeyboardInterrupt

caught immediately even with idle.




More information about the Python-ideas mailing list