diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-08-03 02:06:16 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-08-03 02:06:16 (GMT) |
commit | e365fb8d1ff062d619f9476265e48e9ba8ab2bf6 (patch) | |
tree | cb80331534a82abbadb7d45e9f654c3e97b1b3f5 /Modules/cmathmodule.c | |
parent | 14f515844d3eae2818af3f1da7b32c38d8e73078 (diff) | |
download | cpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.zip cpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.tar.gz cpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.tar.bz2 |
Use METH_VARARGS instead of numeric constant 1 in method def. tables
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 */ }; |