On Sunday, August 24, 2003, at 10:19, Nicholas Clark wrote:

IIRC someone said that in python to exit (in what sounds like this fashion) you just raise a system.exit exception. By default it gets caught by the caller of your main routine, and your program exits. But you can trap the exception, and do whatever you want. That feels powerful, more flexible than an exit() library function à la C.

Sweet! Good for forcing Don't Panic! philosophy upon code you didn't don't want to rewrite, or don't have the source for.




Gordon Henriksen
[EMAIL PROTECTED]

Reply via email to