Pythonwin - breaking out of infinite loop
tim.golden at viacom-outdoor.co.uk
Mon Feb 9 11:54:36 CET 2004
>Tim Golden <tim.golden at viacom-outdoor.co.uk> wrote in message
>news:<mailman.1029.1075453049.12720.python-list at python.org>...
>> >From: Graham [mailto:gsmith at oxfam.org.uk]
>> >How do I stop a Python program running in PythinWin? I would
>> >expect to be
>> >able to use CTR-C or CTRL-break etc.
>> Find the Python icon in the systray (next to the clock at the
>> bottom right of the screen). Right-click and select
>> "Break into running code" (or something like that)
>It doesn't seem to work. I've tried it about fifty times (about ten
>different runs on various recursive algorithms, clicking it about five
>times each until I give up), and it has worked exactly one time.
>Is there anything more useful for breaking out of infinite loops /
>bottomless recursion / unexpectedly slow algorithms that doesn't bring
>down Pythonwin too?
Well if that doesn't work, I don't know what will. Obviously, you could
put guard code / watchdogs in your code (or run it outside PythonWin
while you're testing potential infinite recursion).
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
More information about the Python-list