I\'ve seen a lot of posts about stack trace and exceptions in Python. But haven\'t found what I need.
I have a chunk of Python 2.7 code that may raise an exception.
my 2-cents:
import sys, traceback try: ... except Exception, e: T, V, TB = sys.exc_info() print ''.join(traceback.format_exception(T,V,TB))