#7482: clarify error message in case of division by zero of float and complex numbers.
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index d93d9f9..3f76e91 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -668,7 +668,7 @@
#ifdef Py_NAN
if (b == 0.0) {
PyErr_SetString(PyExc_ZeroDivisionError,
- "float division");
+ "float division by zero");
return NULL;
}
#endif
@@ -690,7 +690,7 @@
#ifdef Py_NAN
if (b == 0.0) {
PyErr_SetString(PyExc_ZeroDivisionError,
- "float division");
+ "float division by zero");
return NULL;
}
#endif