Catching a traceback

Peter Hansen peter at engcorp.com
Tue Jun 8 04:31:31 CEST 2004


Isaac To wrote:

> I think the OP's query is mainly about whether it is possible to print a
> stack trace without crashing the whole program.

If that's the case, then he should check the documentation
for the "traceback" module... it has the facilities for
doing this easily, sometimes in conjunction with sys.exc_info().

-Peter



More information about the Python-list mailing list