[issue1553375] Add traceback.print_full_exception()

R. David Murray report at bugs.python.org
Wed Aug 4 04:33:02 CEST 2010


R. David Murray <rdmurray at bitdance.com> added the comment:

Updated patch with unit tests and docs.  I realized that I'd forgotten to test chained exceptions.  It looks like when the Interpreter prints a traceback all the exceptions in the chain are printed fully, which makes sense.  Adopting that strategy for this patch simplified it into three lines (the signature change and an if/print in the loop).

I'm pretty satisfied with this patch.  I have two questions: should the 'fullstack' option really be implemented in print_tb instead?  And is there a better name for the option?  Would just 'full' be acceptable?

----------
keywords: +needs review
stage: unit test needed -> patch review
Added file: http://bugs.python.org/file18366/full_traceback.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1553375>
_______________________________________


More information about the Python-bugs-list mailing list