catching traceback.print_exc()

Philippe Martin pmartin at snakecard.com
Thu Feb 23 08:34:57 EST 2006


oops: 

"""
format_exc(  [limit[, file]])
This is like print_exc(limit) but returns a string instead of printing to a
file. New in version 2.4.
"""

Philippe Martin wrote:

> Hi,
> 
> Is there a way to catch  traceback.print_exc() output into a string ?
> 
> 
> Philippe




More information about the Python-list mailing list