Catching a traceback

Peter Hansen peter at engcorp.com
Mon Jun 7 22:31:31 EDT 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