summaryrefslogtreecommitdiffstats
path: root/Modules/gcmodule.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-05-25 19:15:31 (GMT)
committerGeorg Brandl <georg@python.org>2006-05-25 19:15:31 (GMT)
commit684fd0c8ec0bad54d3ff39ae15873f80e119478b (patch)
tree56596aed7bfd401ebe049e566201f75f88150b27 /Modules/gcmodule.c
parent3b0cae9cc06374eb7a7159f1328ec700208d6109 (diff)
downloadcpython-684fd0c8ec0bad54d3ff39ae15873f80e119478b.zip
cpython-684fd0c8ec0bad54d3ff39ae15873f80e119478b.tar.gz
cpython-684fd0c8ec0bad54d3ff39ae15873f80e119478b.tar.bz2
Replace PyObject_CallFunction calls with only object args
with PyObject_CallFunctionObjArgs, which is 30% faster.
Diffstat (limited to 'Modules/gcmodule.c')
-rw-r--r--Modules/gcmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index 6ff2c9a..872727d 100644
--- a/Modules/gcmodule.c
+++ b/Modules/gcmodule.c
@@ -603,7 +603,7 @@ handle_weakrefs(PyGC_Head *unreachable, PyGC_Head *old)
assert(callback != NULL);
/* copy-paste of weakrefobject.c's handle_callback() */
- temp = PyObject_CallFunction(callback, "O", wr);
+ temp = PyObject_CallFunctionObjArgs(callback, wr, NULL);
if (temp == NULL)
PyErr_WriteUnraisable(callback);
else