Author terry.reedy
Recipients Mark, terry.reedy
Date 2017-03-28.02:16:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490667384.87.0.319855277008.issue29926@psf.upfronthosting.co.za>
In-reply-to
Content
Scratch my confusion.  I added "print('after')" immediately after _thread.interrupt_main() in idlelib.run.Executor.interrupt_the_server() and 'after' is printed in Shell right after I hit ^C but a time.sleep(10) is not immediately interrupted and 'KeyboardInterrupt' does not show for nearly 10 seconds.  I don't know if this is a bug or unavoidable limitation not mentioned in the _thread doc.  I might be system dependent.
https://docs.python.org/3/library/_thread.html#_thread.interrupt_main
History
Date User Action Args
2017-03-28 02:16:24terry.reedysetrecipients: + terry.reedy, Mark
2017-03-28 02:16:24terry.reedysetmessageid: <1490667384.87.0.319855277008.issue29926@psf.upfronthosting.co.za>
2017-03-28 02:16:24terry.reedylinkissue29926 messages
2017-03-28 02:16:24terry.reedycreate