Skip to content

Commit

Permalink
Improve error message for "float modulo by zero" (python#111685)
Browse files Browse the repository at this point in the history
  • Loading branch information
R1senDev authored Nov 9, 2023
1 parent a5f29c9 commit 0c61d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/floatobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ float_rem(PyObject *v, PyObject *w)
CONVERT_TO_DOUBLE(w, wx);
if (wx == 0.0) {
PyErr_SetString(PyExc_ZeroDivisionError,
"float modulo");
"float modulo by zero");
return NULL;
}
mod = fmod(vx, wx);
Expand Down

0 comments on commit 0c61d02

Please sign in to comment.