mirror of
https://github.com/python/cpython.git
synced 2025-07-28 05:34:31 +00:00
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!).
This commit is contained in:
parent
f54c268326
commit
76c8649038
3 changed files with 5 additions and 16 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue