Author eryksun
Recipients Mark, eryksun, terry.reedy
Date 2017-03-28.02:33:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It's simple to fix this in Python 3 on Windows. PyErr_SetInterrupt in Modules/signalmodule.c needs the following addition:

    #ifdef MS_WINDOWS

In the main thread on Windows, time.sleep() waits on this event. 

On Unix, time.sleep() uses select(). We could interrupt it by signaling the process, or explicitly the main thread, via kill() or pthread_kill(). See issue 21895 for a related discussion.
Date User Action Args
2017-03-28 02:33:27eryksunsetrecipients: + eryksun, terry.reedy, Mark
2017-03-28 02:33:27eryksunsetmessageid: <>
2017-03-28 02:33:27eryksunlinkissue29926 messages
2017-03-28 02:33:27eryksuncreate