Mercurial > cpython-lru_cache-weakref
diff Modules/cmathmodule.c @ 13817:3c0f75a2198f legacy-trunk
Use METH_VARARGS instead of numeric constant 1 in method def. tables
| author | Andrew M. Kuchling <amk@amk.ca> |
|---|---|
| date | Thu, 03 Aug 2000 02:06:16 +0000 |
| parents | 59f8cedcf049 |
| children | 9696c95d09b7 |
line wrap: on
line diff
--- a/Modules/cmathmodule.c Thu Aug 03 02:04:05 2000 +0000 +++ b/Modules/cmathmodule.c Thu Aug 03 02:06:16 2000 +0000 @@ -372,22 +372,38 @@ 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 */ };
