[Python-checkins] r60519 - python/trunk/Modules/mathmodule.c

raymond.hettinger python-checkins at python.org
Sat Feb 2 06:24:44 CET 2008


Author: raymond.hettinger
Date: Sat Feb  2 06:24:44 2008
New Revision: 60519

Modified:
   python/trunk/Modules/mathmodule.c
Log:
Neaten-up a bit.

Modified: python/trunk/Modules/mathmodule.c
==============================================================================
--- python/trunk/Modules/mathmodule.c	(original)
+++ python/trunk/Modules/mathmodule.c	Sat Feb  2 06:24:44 2008
@@ -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)


More information about the Python-checkins mailing list