Message96275
The current error messages for divisions by 0 of float and complex
object say "float/complex division", whereas for int and long is
"integer/long division by zero":
>>> 5/0
ZeroDivisionError: integer division or modulo by zero
>>> 5.0/0
ZeroDivisionError: float division
The attached patch adds "by zero" to the error messages of float and
complex in case of division, modulo or divmod by zero.
(Should I add tests to check the error message too?) |
|
Date |
User |
Action |
Args |
2009-12-11 22:17:29 | ezio.melotti | set | recipients:
+ ezio.melotti, mark.dickinson |
2009-12-11 22:17:28 | ezio.melotti | set | messageid: <1260569848.94.0.64759795971.issue7482@psf.upfronthosting.co.za> |
2009-12-11 22:17:27 | ezio.melotti | link | issue7482 messages |
2009-12-11 22:17:27 | ezio.melotti | create | |
|