Interrupting Python

David LeBlanc whisper at
Fri Sep 6 16:56:07 EDT 2002

> 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