
On Tue, 15 Sep 2009 09:16:27 -0700 (PDT) ryles <rylesny@gmail.com> wrote:
On Sep 15, 9:34 am, Nick Coghlan <ncogh...@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.
FYI, threading.Event().wait(n) actually looks to be interruptible on both *nix and Windows.
Is there an example in the standard library that doesn't handle interrupts properly on both systems? How about a libc function that fails when invoked via ctypes? If not, then it might be reasonable to conclude that the problem is buggy extensions, and go back to figuring out how to make it easier to write extensions that handle this properly. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org