Interrupting Python

Bob Easton bob at eleaston.com
Fri Sep 6 17:38:55 EDT 2002


Thanks to all.  My system is Win2K. Python simply ignores Ctrl-c and
Ctrl-break. I think I'll fall back to using file existence as a simple
semaphore.  That will be good enough and cheap enough for this application.

--
Bob Easton


"David LeBlanc" <whisper at oz.net> wrote in message
news:mailman.1031345649.9840.python-list at python.org...
> > I have a script that can run, accessing network resources, for
> > several days.
> > Since the script does not normally need keyed input, exception
processing
> > does not raise the keyboard exception until after the program
> > ends normally.
> > I would like to be able to interrupt if from the keyboard, but have not
> > learned the trick.  How can I do this?
> >
> > --
> > Bob Easton
>
> I have had the experience of Python progs not responding to ctrl-c or
ctrl-d
> on Windows, but I found that ctrl-break works every time.
>
> Dave LeBlanc
>
>





More information about the Python-list mailing list