From: Raymond Hettinger Date: Mon, 27 Aug 2018 00:38:31 +0000 (-0500) Subject: Fast path for exact floats in math.hypot() and math.dist() (GH-8949) X-Git-Tag: v3.8.0a1~1151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74734f73ca3cdb48d4d51139512b6828c2734252;p=python Fast path for exact floats in math.hypot() and math.dist() (GH-8949) --- diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 2d483afff5..62d327998f 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -2134,14 +2134,22 @@ math_dist_impl(PyObject *module, PyObject *p, PyObject *q) } for (i=0 ; i