[Tutor] keyboard interrupt

Marc Tompkins marc.tompkins at gmail.com
Wed May 22 23:21:38 CEST 2013


On Wed, May 22, 2013 at 1:30 PM, Jim Mooney <cybervigilante at gmail.com>wrote:

> On 22 May 2013 13:24, Jim Mooney <cybervigilante at gmail.com> wrote:
> >> I've not used it myself, but I believe the KeyboadInterrupt is only
> >> generated by one _specific_ keypress.  You mentioned that you pressed a
> key
> >> - did you try Control-C?
> >
> > Actually, I did, using Win 7 - and I put exit() in place of pass. I
> > tried ctrl-c, ctrl-x, esc, and del. Windows doesn't seem to respond to
> > anything. The prog just goes to the end
> >
> > Jim
>
> Figured it out. Ctrl-C only works in the Windows Command window, not
> in an editor.
>

That makes a lot of sense.  And should be added to the list of responses
_next_ time somebody asks "Why shouldn't I run production code in IDLE?"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130522/ad0582f3/attachment-0001.html>


More information about the Tutor mailing list