Message188187
> 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). |
|
Date |
User |
Action |
Args |
2013-04-30 21:30:47 | ezio.melotti | set | recipients:
+ ezio.melotti, georg.brandl, terry.reedy, ncoghlan, giampaolo.rodola, psss, r.david.murray, flox, lesmana, petri.lehtinen, kushal.das, icordasc, dmi.baranov |
2013-04-30 21:30:47 | ezio.melotti | set | messageid: <1367357447.14.0.115903032386.issue12458@psf.upfronthosting.co.za> |
2013-04-30 21:30:47 | ezio.melotti | link | issue12458 messages |
2013-04-30 21:30:46 | ezio.melotti | create | |
|