From 0c61d028be93c52726972d8d96393cc0cedb1086 Mon Sep 17 00:00:00 2001 From: Pavel Ovchinnikov <99139074+R1senDev@users.noreply.github.com> Date: Thu, 9 Nov 2023 22:43:58 +0300 Subject: [PATCH] Improve error message for "float modulo by zero" (#111685) --- Objects/floatobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 776c7092edd057..364cf1553bb5d4 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -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);