Message297291
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 |
|
Date |
User |
Action |
Args |
2017-06-29 18:11:41 | terry.reedy | set | recipients:
+ terry.reedy, njs, martin.panter, Mark, eryksun, louielu |
2017-06-29 18:11:41 | terry.reedy | set | messageid: <1498759901.16.0.379711725003.issue29926@psf.upfronthosting.co.za> |
2017-06-29 18:11:41 | terry.reedy | link | issue29926 messages |
2017-06-29 18:11:41 | terry.reedy | create | |
|