Pythonwin - breaking out of infinite loop

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Graham

    Pythonwin - breaking out of infinite loop

    How do I stop a Python program running in PythinWin? I would expect to be
    able to use CTR-C or CTRL-break etc.

    many thanks

    Graham Smith

    PeopleSoft Technical Team Leader
    OXFAM GB
    +44 (1865) 313255
    gsmith@oxfam.or g.uk


  • Aahz

    #2
    Re: Pythonwin - breaking out of infinite loop

    In article <40193737$0$133 50$ed9e5944@rea ding.news.pipex .net>,
    Graham <gsmith@oxfam.o rg.uk> wrote:[color=blue]
    >
    >How do I stop a Python program running in PythinWin? I would expect to be
    >able to use CTR-C or CTRL-break etc.[/color]

    That should work, but there are some oddball cases where Python won't
    check for the signal. Here's a simple example:

    while 1:
    pass
    --
    Aahz (aahz@pythoncra ft.com) <*> http://www.pythoncraft.com/

    "The joy of coding Python should be in seeing short, concise, readable
    classes that express a lot of action in a small amount of clear code --
    not in reams of trivial code that bores the reader to death." --GvR

    Comment

    • Graham

      #3
      Re: Pythonwin - breaking out of infinite loop

      Thanks to everyone who replied here.

      Graham


      Comment

      Working...