Skip to content

Commit 0c61d02

Browse files
authored
Improve error message for "float modulo by zero" (python#111685)
1 parent a5f29c9 commit 0c61d02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/floatobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ float_rem(PyObject *v, PyObject *w)
646646
CONVERT_TO_DOUBLE(w, wx);
647647
if (wx == 0.0) {
648648
PyErr_SetString(PyExc_ZeroDivisionError,
649-
"float modulo");
649+
"float modulo by zero");
650650
return NULL;
651651
}
652652
mod = fmod(vx, wx);

0 commit comments

Comments
 (0)