diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-02-22 16:30:58 +0000 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-02-22 16:30:58 +0000 |
commit | bce3e17bd2897d998b08b34420877fbc09a9ca75 (patch) | |
tree | d2bfa6b4db7b9f1610ff9dc7294a4aedd84a789c /Objects/floatobject.c | |
parent | 38c123651c4eb04ea093162ecdcbd217eb125341 (diff) | |
download | cpython-git-bce3e17bd2897d998b08b34420877fbc09a9ca75.tar.gz |
#7482: clarify error message in case of division by zero of float and complex numbers.
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r-- | Objects/floatobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index d93d9f931f..3f76e91ff2 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -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 |