Nick Coghlan <ncogh...@gmail.com> added the comment:

Note that after the loop over the values is complete, the final value of tb 
should correctly refer to the traceback for the exception currently being 
handled regardless of whether or not any chaining is involved.

So moving the stack printing code that is currently inside the loop after the 
loop should do the right thing.

With my suggested change in the display layout, I think this idea is still 
worthwhile (getting it right in handling code is tricky, especially if the 
exception is passed around before being displayed).

----------
keywords:  -easy

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue1553375>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to