[Python-checkins] r60425 - python/trunk/Python/bltinmodule.c
raymond.hettinger
python-checkins at python.org
Tue Jan 29 20:52:10 CET 2008
Author: raymond.hettinger
Date: Tue Jan 29 20:52:09 2008
New Revision: 60425
Modified:
python/trunk/Python/bltinmodule.c
Log:
CallMethod is faster with a NULL third-argument than with an empty format string.
Modified: python/trunk/Python/bltinmodule.c
==============================================================================
--- python/trunk/Python/bltinmodule.c (original)
+++ python/trunk/Python/bltinmodule.c Tue Jan 29 20:52:09 2008
@@ -2050,7 +2050,7 @@
/* 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__", "");
+ return PyObject_CallMethod(number, "__trunc__", NULL);
}
PyDoc_STRVAR(trunc_doc,
More information about the Python-checkins
mailing list