[issue12535] Chained tracebacks are confusing because the first traceback is minimal
R. David Murray
report at bugs.python.org
Mon Jul 11 21:43:29 CEST 2011
R. David Murray <rdmurray at bitdance.com> added the comment:
I think the reason the chained tracebacks look backward to me is twofold: I'm used to the last one in the list being the *only* one I get (in python2), and the last one in the list is often the one I want to deal with first. This is especially true if my try/except is transforming the more-specific-but-not-application-meaningful exception into one that is meaningful for the application.
So another possibility would be to reverse the order in which the tracebacks are printed, and instead of saying "during the handling of the above exception...", we'd say "this exception occurred during the handling of the following exception:". Doing this would probably greatly reduce the desire for a way to suppress the traceback chaining.
----------
nosy: +ncoghlan
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12535>
_______________________________________
More information about the Python-bugs-list
mailing list