Pythonwin - breaking out of infinite loop

G

Graham

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
(e-mail address removed)
 
A

Aahz

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

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 ([email protected]) <*> 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top