Mercurial > cpython-lru_cache-weakref
diff Modules/mathmodule.c @ 45102:ce9816f53690 legacy-trunk
Neaten-up a bit.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Sat, 02 Feb 2008 05:24:44 +0000 |
| parents | 492b302aded6 |
| children | 5bc7b20dc04a |
line wrap: on
line diff
--- a/Modules/mathmodule.c Sat Feb 02 05:11:40 2008 +0000 +++ b/Modules/mathmodule.c Sat Feb 02 05:24:44 2008 +0000 @@ -157,17 +157,13 @@ static PyObject * math_trunc(PyObject *self, PyObject *number) { - /* XXX: The py3k branch gets better errors for this by using - _PyType_Lookup(), but since float's mro isn't set in py2.6, - we just use PyObject_CallMethod here. */ return PyObject_CallMethod(number, "__trunc__", NULL); } PyDoc_STRVAR(math_trunc_doc, "trunc(x:Real) -> Integral\n" "\n" -"Truncates x to the nearest Integral toward 0. Uses the __trunc__ magic" -"method."); +"Truncates x to the nearest Integral toward 0. Uses the __trunc__ magic method."); static PyObject * math_frexp(PyObject *self, PyObject *arg)
