summaryrefslogtreecommitdiffstats
path: root/Modules/clinic
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2018-07-28 14:48:04 (GMT)
committerGitHub <noreply@github.com>2018-07-28 14:48:04 (GMT)
commitc6dabe37e3c4d449562182b044184d1756bea037 (patch)
treebbb89623d68962192e810c5327ae98ff28084025 /Modules/clinic
parent50326927465c3f5c6c0168fc43310c8e97db0a47 (diff)
downloadcpython-c6dabe37e3c4d449562182b044184d1756bea037.zip
cpython-c6dabe37e3c4d449562182b044184d1756bea037.tar.gz
cpython-c6dabe37e3c4d449562182b044184d1756bea037.tar.bz2
bpo-33089: Multidimensional math.hypot() (GH-8474)
Diffstat (limited to 'Modules/clinic')
-rw-r--r--Modules/clinic/mathmodule.c.h31
1 files changed, 1 insertions, 30 deletions
diff --git a/Modules/clinic/mathmodule.c.h b/Modules/clinic/mathmodule.c.h
index ffebb07..3a487bd 100644
--- a/Modules/clinic/mathmodule.c.h
+++ b/Modules/clinic/mathmodule.c.h
@@ -269,35 +269,6 @@ exit:
return return_value;
}
-PyDoc_STRVAR(math_hypot__doc__,
-"hypot($module, x, y, /)\n"
-"--\n"
-"\n"
-"Return the Euclidean distance, sqrt(x*x + y*y).");
-
-#define MATH_HYPOT_METHODDEF \
- {"hypot", (PyCFunction)math_hypot, METH_FASTCALL, math_hypot__doc__},
-
-static PyObject *
-math_hypot_impl(PyObject *module, double x, double y);
-
-static PyObject *
-math_hypot(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
-{
- PyObject *return_value = NULL;
- double x;
- double y;
-
- if (!_PyArg_ParseStack(args, nargs, "dd:hypot",
- &x, &y)) {
- goto exit;
- }
- return_value = math_hypot_impl(module, x, y);
-
-exit:
- return return_value;
-}
-
PyDoc_STRVAR(math_pow__doc__,
"pow($module, x, y, /)\n"
"--\n"
@@ -516,4 +487,4 @@ math_isclose(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
exit:
return return_value;
}
-/*[clinic end generated code: output=e554bad553045546 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=1c35516a10443902 input=a9049054013a1b77]*/