diff options
Diffstat (limited to 'Modules/cmathmodule.c')
-rw-r--r-- | Modules/cmathmodule.c | 48 |
1 files changed, 32 insertions, 16 deletions
diff --git a/Modules/cmathmodule.c b/Modules/cmathmodule.c index 9781983..69eaf12 100644 --- a/Modules/cmathmodule.c +++ b/Modules/cmathmodule.c @@ -372,22 +372,38 @@ functions for complex numbers."; static PyMethodDef cmath_methods[] = { - {"acos", cmath_acos, 1, c_acos_doc}, - {"acosh", cmath_acosh, 1, c_acosh_doc}, - {"asin", cmath_asin, 1, c_asin_doc}, - {"asinh", cmath_asinh, 1, c_asinh_doc}, - {"atan", cmath_atan, 1, c_atan_doc}, - {"atanh", cmath_atanh, 1, c_atanh_doc}, - {"cos", cmath_cos, 1, c_cos_doc}, - {"cosh", cmath_cosh, 1, c_cosh_doc}, - {"exp", cmath_exp, 1, c_exp_doc}, - {"log", cmath_log, 1, c_log_doc}, - {"log10", cmath_log10, 1, c_log10_doc}, - {"sin", cmath_sin, 1, c_sin_doc}, - {"sinh", cmath_sinh, 1, c_sinh_doc}, - {"sqrt", cmath_sqrt, 1, c_sqrt_doc}, - {"tan", cmath_tan, 1, c_tan_doc}, - {"tanh", cmath_tanh, 1, c_tanh_doc}, + {"acos", cmath_acos, + METH_VARARGS, c_acos_doc}, + {"acosh", cmath_acosh, + METH_VARARGS, c_acosh_doc}, + {"asin", cmath_asin, + METH_VARARGS, c_asin_doc}, + {"asinh", cmath_asinh, + METH_VARARGS, c_asinh_doc}, + {"atan", cmath_atan, + METH_VARARGS, c_atan_doc}, + {"atanh", cmath_atanh, + METH_VARARGS, c_atanh_doc}, + {"cos", cmath_cos, + METH_VARARGS, c_cos_doc}, + {"cosh", cmath_cosh, + METH_VARARGS, c_cosh_doc}, + {"exp", cmath_exp, + METH_VARARGS, c_exp_doc}, + {"log", cmath_log, + METH_VARARGS, c_log_doc}, + {"log10", cmath_log10, + METH_VARARGS, c_log10_doc}, + {"sin", cmath_sin, + METH_VARARGS, c_sin_doc}, + {"sinh", cmath_sinh, + METH_VARARGS, c_sinh_doc}, + {"sqrt", cmath_sqrt, + METH_VARARGS, c_sqrt_doc}, + {"tan", cmath_tan, + METH_VARARGS, c_tan_doc}, + {"tanh", cmath_tanh, + METH_VARARGS, c_tanh_doc}, {NULL, NULL} /* sentinel */ }; |