[FRPythoneers] Printing a traceback

Ken Kinder kkinder at tridog.com
Mon Aug 27 10:27:38 MDT 2001


If I have a statement like:

try:
	(bad code)
except:
	typ, val, tb = sys.exc_info()
	....

How do I put the traceback-like text in a string variable? That is, I
want the text that would otherwise be printed to sys.stderr if I hadn't
have caught the error.

-- 
Ken Kinder - Engineer
Par Avance, Inc. / Tridog Interactive, Inc.



More information about the FRPythoneers mailing list