[Pythonmac-SIG] Hung like a snake...

Jonathan Wight JWight@bigfoot.com
10 Sep 1998 13:22:43 -0000


If I were to create a mac app that could be extended with Python scripts how would I gracefully deal with the possibility of a script getting into an infinite loop and hanging?

Is threading the answer? Is threading implemented properly on the Mac?

Is there some other way of detecting an infinite loop (timeouts) and then gracefully killing it and _hopefully_ rolling back the changes the script has made (if needed).

Thanks.

    Jon