Getting backtrace on an axception

Fredrik Lundh fredrik at pythonware.com
Sat Jun 10 13:45:15 EDT 2006


Paolo Pantaleo wrote:


> 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].

 >>> import traceback
 >>> help(traceback)

</F>




More information about the Python-list mailing list