summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-04-01 16:42:11 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-04-01 16:42:11 (GMT)
commit76c8649038bed4598c7fcac9ef87548f94013087 (patch)
tree3bbe0ceed50c9072fce0bb2bdf5aa64192279111 /Python
parentf54c2683267e008aa27570e366e64e2d0d80061c (diff)
downloadcpython-76c8649038bed4598c7fcac9ef87548f94013087.zip
cpython-76c8649038bed4598c7fcac9ef87548f94013087.tar.gz
cpython-76c8649038bed4598c7fcac9ef87548f94013087.tar.bz2
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')
-rw-r--r--Python/ceval.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 339a351..b06de50 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3852,18 +3852,7 @@ Py_FlushLine(void)
/* 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)