[python-win32] Stopping a program in PythonWin?

Blair Hall b.hall@irl.cri.nz
Thu, 08 Aug 2002 14:40:03 +1200


Could anyone tell me please how to break out of execution when
running something in the PythonWin environment.

For example, suppose I had defined a long loop like

def boring():
     for i in range(10000):
          print 'bored'

and then in the interactive window typed

 >>> boring()

How could I avoid waiting for the loop to run its course?
Ctrl-C does not seem to work, nor anything else
on my keyboard (except Ctrl-Alt-Delete, which is rather too drastic)