Exception Handling

Oleg Broytmann phd at phd.fep.ru
Wed May 9 16:39:41 EDT 2001


Hi!

On Wed, 9 May 2001, michael montagne wrote:
> 1.      How do I break out of a running program?  similar to Ctrl-Break in
> VBA.

   Platform-dependent. Usually, Ctrl-C.

> 2.      In the except: part of a try/except statement, what is the best way
> to print out the error?

   Using module traceback. See docs for the module and the module source
(traceback.py).

Oleg.
----
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list