Irit Katriel iritkatriel@yahoo.com added the comment:
As of 3.5 there is this option:
traceback.TracebackException.from_exception(exc).format()
Perhaps that can be mentioned in the doc for traceback.format_exception().
---------- assignee: -> docs@python components: +Documentation nosy: +docs@python, iritkatriel versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue14655 _______________________________________