Getting backtrace on an axception

Paolo Pantaleo paolopantaleo at
Sat Jun 10 19:24:28 CEST 2006

So I have this code

    do something
     do something else

In the except block I need to print detailed output about the error
occured, and in particular I need to read the backtrace for the line
that raised the exception [then modify and print it]. I know about the
exception.extract_tb() and friends, but I can't figure out how they

Can somebody exlpain me?


if you have a minute to spend please visit my photogrphy site:

More information about the Python-list mailing list