Message169556
I'm not sure this is really useful. Once I know that I divided by zero and I know where the division is, I don't really care what the numerator is. Knowing the exact type of the denominator (0, 0.0, 0j) doesn't sound too useful as well -- unless you somehow manage to get the wrong type and a 0-value at the same time.
On a side note, I don't like
ZeroDivisionError: integer division or modulo of 3 by 0
too much, but I would prefer
ZeroDivisionError: integer division (or modulo) by zero
over
ZeroDivisionError: integer division or modulo by zero
IIRC the reason why both "division" and "modulo" are included in the message is because the error is created in a piece of code that is shared by both operations. |
|
Date |
User |
Action |
Args |
2012-08-31 16:42:53 | ezio.melotti | set | recipients:
+ ezio.melotti, terry.reedy, mark.dickinson, pitrou |
2012-08-31 16:42:53 | ezio.melotti | set | messageid: <1346431373.26.0.262781415851.issue15815@psf.upfronthosting.co.za> |
2012-08-31 16:42:52 | ezio.melotti | link | issue15815 messages |
2012-08-31 16:42:52 | ezio.melotti | create | |
|