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

    #ifdef MS_WINDOWS
        SetEvent(sigint_event);
    #endif

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.
History
Date User Action Args
2017-03-28 02:33:27eryksunsetrecipients: + eryksun, terry.reedy, Mark
2017-03-28 02:33:27eryksunsetmessageid: <1490668407.88.0.18808223785.issue29926@psf.upfronthosting.co.za>
2017-03-28 02:33:27eryksunlinkissue29926 messages
2017-03-28 02:33:27eryksuncreate