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 ezio.melotti, mark.dickinson, pitrou, terry.reedy
Date 2012-08-31.16:42:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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
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:53ezio.melottisetrecipients: + ezio.melotti, terry.reedy, mark.dickinson, pitrou
2012-08-31 16:42:53ezio.melottisetmessageid: <>
2012-08-31 16:42:52ezio.melottilinkissue15815 messages
2012-08-31 16:42:52ezio.melotticreate