[Tutor] keyboard interrupt

eryksun eryksun at gmail.com
Thu May 23 08:56:35 CEST 2013


On Wed, May 22, 2013 at 8:56 PM, Jim Mooney <cybervigilante at gmail.com> wrote:
> On 22 May 2013 15:05, eryksun <eryksun at gmail.com> wrote:
>> On Wed, May 22, 2013 at 4:30 PM, Jim Mooney <cybervigilante at gmail.com> wrote:
>>>
>>> Figured it out. Ctrl-C only works in the Windows Command window, not
>>> in an editor.
>>
>> Which IDE?
>
> Wing. But not being able to abort out of a Windows program is a
> feature. You don't want to lose seven hours of spreadsheet work
> because you forgot and hit ctrl-C. (I just hit Ctrl-C. Nothing, which
> is as it should be ;')
>
> Well, it's good to be reminded that an editor does funny stuff as
> opposed to command line.

Apparently Wing isn't as savvy as IDLE when it comes to communicating
with the subprocess. I've only searched for about a minute, but
apparently the way this works in Wing is to "Restart Shell":

http://stackoverflow.com/a/10360503/205580
http://www.wingware.com/doc/debug/interactive-python-shell

This kills the suprocess and starts a new interpreter. Crude, but it
should get the job done.


More information about the Tutor mailing list