Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 60130:04e775b33e9e
Merged revisions 79555 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79555 | antoine.pitrou | 2010-04-01 18:42:11 +0200 (jeu., 01 avril 2010) | 5 lines
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:53:15 +0000 |
| parents | 3833cf33ca61 |
| children | 4fd3ab5fa71d |
line wrap: on
line diff
--- a/Python/ceval.c Thu Apr 01 10:34:09 2010 +0000 +++ b/Python/ceval.c Thu Apr 01 16:53:15 2010 +0000 @@ -3695,18 +3695,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)
