diff options
author | Georg Brandl <georg@python.org> | 2006-05-29 21:58:42 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-05-29 21:58:42 (GMT) |
commit | bf92f4657234d724df241fc3060d2c2e94e6bf83 (patch) | |
tree | 5dce094b4c555697fc22ab7b0a64a70d35bfe519 /Modules/mathmodule.c | |
parent | 96a8c3954cbdb186bc567a490dad8987508ce268 (diff) | |
download | cpython-bf92f4657234d724df241fc3060d2c2e94e6bf83.zip cpython-bf92f4657234d724df241fc3060d2c2e94e6bf83.tar.gz cpython-bf92f4657234d724df241fc3060d2c2e94e6bf83.tar.bz2 |
Convert more modules to METH_VARARGS.
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r-- | Modules/mathmodule.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index e7fc6dd..e6839b0 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -277,12 +277,8 @@ PyDoc_STRVAR(math_log_doc, If the base not specified, returns the natural logarithm (base e) of x."); static PyObject * -math_log10(PyObject *self, PyObject *args) +math_log10(PyObject *self, PyObject *arg) { - PyObject *arg; - - if (!PyArg_UnpackTuple(args, "log10", 1, 1, &arg)) - return NULL; return loghelper(args, log10, "d:log10", arg); } @@ -332,7 +328,7 @@ static PyMethodDef math_methods[] = { {"hypot", math_hypot, METH_VARARGS, math_hypot_doc}, {"ldexp", math_ldexp, METH_VARARGS, math_ldexp_doc}, {"log", math_log, METH_VARARGS, math_log_doc}, - {"log10", math_log10, METH_VARARGS, math_log10_doc}, + {"log10", math_log10, METH_O, math_log10_doc}, {"modf", math_modf, METH_VARARGS, math_modf_doc}, {"pow", math_pow, METH_VARARGS, math_pow_doc}, {"radians", math_radians, METH_VARARGS, math_radians_doc}, |