Author terry.reedy
Recipients Mark, eryksun, louielu, martin.panter, njs, terry.reedy
Date 2017-06-29.18:11:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1498759901.16.0.379711725003.issue29926@psf.upfronthosting.co.za>
In-reply-to
Content
It appears you are right about open('con'...).

However, this issue is about the fact that 
>>> import time; time.sleep(10)
^C
...
KeyboardInterrupt

works in the console but does not work in the IDLE Shell in default mode.  In default mode (-n not on the command line) entered code is executed in a separate process and and ^C causes a message to be sent to the separate process to simulate ^C keypress by calling 'something'.

The indirect process works for 'normal' code like
>>> s = input('Hi')
so input() is not part of this issue, except that it or its interruption should not be broken.  Ditto for
>>> while True: pass
History
Date User Action Args
2017-06-29 18:11:41terry.reedysetrecipients: + terry.reedy, njs, martin.panter, Mark, eryksun, louielu
2017-06-29 18:11:41terry.reedysetmessageid: <1498759901.16.0.379711725003.issue29926@psf.upfronthosting.co.za>
2017-06-29 18:11:41terry.reedylinkissue29926 messages
2017-06-29 18:11:41terry.reedycreate