Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 60129:6df6c19fbae3 legacy-trunk
Issue #8276: PyEval_CallObject() is now only available in macro form. The
function declaration, which was kept for backwards compatibility reasons,
is now removed (the macro was introduced in 1997!).
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Thu, 01 Apr 2010 16:42:11 +0000 |
| parents | dbad1c0668c9 |
| children | 5cea27275af1 |
line wrap: on
line diff
--- a/Python/ceval.c Thu Apr 01 07:54:16 2010 +0000 +++ b/Python/ceval.c Thu Apr 01 16:42:11 2010 +0000 @@ -3852,18 +3852,7 @@ /* External interface to call any callable object. - The arg must be a tuple or NULL. */ - -#undef PyEval_CallObject -/* for backward compatibility: export this interface */ - -PyObject * -PyEval_CallObject(PyObject *func, PyObject *arg) -{ - return PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL); -} -#define PyEval_CallObject(func,arg) \ - PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL) + The arg must be a tuple or NULL. The kw must be a dict or NULL. */ PyObject * PyEval_CallObjectWithKeywords(PyObject *func, PyObject *arg, PyObject *kw)
