summaryrefslogtreecommitdiff
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-04-01 16:53:15 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2010-04-01 16:53:15 +0000
commit5b4d0b722c2290cfa47f6568fd98a2be3da488fa (patch)
tree0f93f96bf9096508de0750b9fcda66f0bb250a11 /Python/ceval.c
parentc1390b33abf9658aaa7718d5ffab2e8b7949180c (diff)
downloadcpython-5b4d0b722c2290cfa47f6568fd98a2be3da488fa.tar.gz
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!). ........
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 4e8557df9a..0c14eb08e1 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3695,18 +3695,7 @@ PyEval_MergeCompilerFlags(PyCompilerFlags *cf)
/* 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)