[Python-Dev] threads, SIGINT and time.sleep()

Guido van Rossum guido@python.org
Mon, 15 Jul 2002 09:38:45 -0400


Python has always documented that signals go only to the main thread.
Apparently in 2.1 and before this wasn't implemented properly (for
Linux; I don't know about other platforms and this is notoriously
platform-dependent).

I think that since ^C doesn't interrupt regular Python code running in
a thread, it's strange that time.sleep() (and presumably other I/O!)
would be interrupted.

So I'd like to see the CVS behavior.

--Guido van Rossum (home page: http://www.python.org/~guido/)