mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Use METH_VARARGS instead of numeric constant 1 in method def. tables
This commit is contained in:
parent
14f515844d
commit
e365fb8d1f
12 changed files with 178 additions and 107 deletions
|
@ -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 */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue