catching traceback.print_exc()

Peter Hansen peter at engcorp.com
Thu Feb 23 09:12:58 EST 2006


Philippe Martin wrote:
> Is there a way to catch  traceback.print_exc() output into a string ?

Presumably using one of the alternatives, like format_exc().  If that's 
not sufficient, maybe some example code to demonstrate what you really 
want would help.

-Peter




More information about the Python-list mailing list