Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 38314:1fdf29a88f0e legacy-trunk
Replace PyObject_CallFunction calls with only object args
with PyObject_CallFunctionObjArgs, which is 30% faster.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Thu, 25 May 2006 19:15:31 +0000 |
| parents | 4bd299d00e4c |
| children | fe653e22488c |
line wrap: on
line diff
--- a/Python/ceval.c Thu May 25 19:15:27 2006 +0000 +++ b/Python/ceval.c Thu May 25 19:15:31 2006 +0000 @@ -4053,7 +4053,7 @@ metaclass = (PyObject *) &PyClass_Type; Py_INCREF(metaclass); } - result = PyObject_CallFunction(metaclass, "OOO", name, bases, methods); + result = PyObject_CallFunctionObjArgs(metaclass, name, bases, methods, NULL); Py_DECREF(metaclass); if (result == NULL && PyErr_ExceptionMatches(PyExc_TypeError)) { /* A type error here likely means that the user passed
