summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-05-29 22:00:30 (GMT)
committerGeorg Brandl <georg@python.org>2006-05-29 22:00:30 (GMT)
commita355c14fa10e3f533e4749d3cbed273b864d6235 (patch)
tree8929fc38bbd2f3917b41d81de0e11241f57a033b /Modules
parentbf92f4657234d724df241fc3060d2c2e94e6bf83 (diff)
downloadcpython-a355c14fa10e3f533e4749d3cbed273b864d6235.zip
cpython-a355c14fa10e3f533e4749d3cbed273b864d6235.tar.gz
cpython-a355c14fa10e3f533e4749d3cbed273b864d6235.tar.bz2
Whoops.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/mathmodule.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index e6839b0..e7fc6dd 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -277,8 +277,12 @@ 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 *arg)
+math_log10(PyObject *self, PyObject *args)
{
+ PyObject *arg;
+
+ if (!PyArg_UnpackTuple(args, "log10", 1, 1, &arg))
+ return NULL;
return loghelper(args, log10, "d:log10", arg);
}
@@ -328,7 +332,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_O, math_log10_doc},
+ {"log10", math_log10, METH_VARARGS, 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},