diff options
author | Raymond Hettinger <python@rcn.com> | 2008-01-29 19:52:09 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-01-29 19:52:09 (GMT) |
commit | 867558afd69675be8263a19c3d23b92812a0a62a (patch) | |
tree | c05796a1a80b867eed4f5226f1bc9e242d354ed6 /Python | |
parent | 9748a1098fcba1e482942a5574c007dd08391fe2 (diff) | |
download | cpython-867558afd69675be8263a19c3d23b92812a0a62a.zip cpython-867558afd69675be8263a19c3d23b92812a0a62a.tar.gz cpython-867558afd69675be8263a19c3d23b92812a0a62a.tar.bz2 |
CallMethod is faster with a NULL third-argument than with an empty format string.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 444fc1e..cd74758 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -2050,7 +2050,7 @@ builtin_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__", ""); + return PyObject_CallMethod(number, "__trunc__", NULL); } PyDoc_STRVAR(trunc_doc, |