This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients dmi.baranov, ezio.melotti, flox, georg.brandl, giampaolo.rodola, icordasc, kushal.das, lesmana, ncoghlan, petri.lehtinen, psss, r.david.murray, terry.reedy
Date 2013-04-30.21:30:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 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 "", line 6, in <module>
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:47ezio.melottisetrecipients: + 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:47ezio.melottisetmessageid: <>
2013-04-30 21:30:47ezio.melottilinkissue12458 messages
2013-04-30 21:30:46ezio.melotticreate