diff options
Diffstat (limited to 'Modules/clinic/cmathmodule.c.h')
| -rw-r--r-- | Modules/clinic/cmathmodule.c.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/Modules/clinic/cmathmodule.c.h b/Modules/clinic/cmathmodule.c.h index 09bd5dfb69..a65c6ef31a 100644 --- a/Modules/clinic/cmathmodule.c.h +++ b/Modules/clinic/cmathmodule.c.h @@ -647,16 +647,12 @@ static PyObject * cmath_log_impl(PyObject *module, Py_complex x, PyObject *y_obj); static PyObject * -cmath_log(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +cmath_log(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_complex x; PyObject *y_obj = NULL; - if (!_PyArg_NoStackKeywords("log", kwnames)) { - goto exit; - } - if (!_PyArg_ParseStack(args, nargs, "D|O:log", &x, &y_obj)) { goto exit; @@ -736,16 +732,12 @@ static PyObject * cmath_rect_impl(PyObject *module, double r, double phi); static PyObject * -cmath_rect(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +cmath_rect(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; double r; double phi; - if (!_PyArg_NoStackKeywords("rect", kwnames)) { - goto exit; - } - if (!_PyArg_ParseStack(args, nargs, "dd:rect", &r, &phi)) { goto exit; @@ -859,7 +851,7 @@ PyDoc_STRVAR(cmath_isclose__doc__, "not close to anything, even itself. inf and -inf are only close to themselves."); #define CMATH_ISCLOSE_METHODDEF \ - {"isclose", (PyCFunction)cmath_isclose, METH_FASTCALL, cmath_isclose__doc__}, + {"isclose", (PyCFunction)cmath_isclose, METH_FASTCALL|METH_KEYWORDS, cmath_isclose__doc__}, static int cmath_isclose_impl(PyObject *module, Py_complex a, Py_complex b, @@ -890,4 +882,4 @@ cmath_isclose(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwn exit: return return_value; } -/*[clinic end generated code: output=11a0b5bb8a652de6 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=51ba28d27d10264e input=a9049054013a1b77]*/ |
