Ezio Melotti added the comment: > Consider: > r(a()/b(), > d()/e(), > g=h()/i(), > )
I tried to run this, with e() == 0, and got: Traceback (most recent call last): File "deleteme.py", line 6, in <module> d()/e(), ZeroDivisionError: division by zero This is actually a good point, because in this specific case the traceback is correct, and showing all the lines would make things worse. > If 1 of the expressions raises an error, do you really want > all 500 lines in the traceback? I assume it wouldn't be too difficult to limit the output to 3-5 lines max. Someone should try to fiddle with the code I indicated in msg144813, and see what can be done. If there are enough informations it might be possible to keep reporting a single line for the aforementioned case, but report more lines for the cases listed in the other messages; if there aren't enough informations we will have to abandon the idea (or find a way to retrieve them). ---------- nosy: +kushaldas _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12458> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com