#7482: clarify error message in case of division by zero of float and complex numbers.

This commit is contained in:
Ezio Melotti 2010-02-22 16:30:58 +00:00
parent 38c123651c
commit bce3e17bd2
2 changed files with 4 additions and 4 deletions

View file

@ -668,7 +668,7 @@ float_div(PyObject *v, PyObject *w)
#ifdef Py_NAN
if (b == 0.0) {
PyErr_SetString(PyExc_ZeroDivisionError,
"float division");
"float division by zero");
return NULL;
}
#endif
@ -690,7 +690,7 @@ float_classic_div(PyObject *v, PyObject *w)
#ifdef Py_NAN
if (b == 0.0) {
PyErr_SetString(PyExc_ZeroDivisionError,
"float division");
"float division by zero");
return NULL;
}
#endif