bpo-29548: deprecate PyEval_Call* functions (GH-14804) · python/cpython@151b91d (original) (raw)
`@@ -8,25 +8,25 @@ extern "C" {
`
8
8
`/* Interface to random parts in ceval.c */
`
9
9
``
10
10
`/* PyEval_CallObjectWithKeywords(), PyEval_CallObject(), PyEval_CallFunction
`
11
``
`-
- and PyEval_CallMethod are kept for backward compatibility: PyObject_Call(),
`
12
``
`-
- PyObject_CallFunction() and PyObject_CallMethod() are recommended to call
`
13
``
`-
- a callable object.
`
``
11
`+
- and PyEval_CallMethod are deprecated. Since they are officially part of the
`
``
12
`+
- stable ABI (PEP 384), they must be kept for backward compatibility.
`
``
13
`+
- PyObject_Call(), PyObject_CallFunction() and PyObject_CallMethod() are
`
``
14
`+
- recommended to call a callable object.
`
14
15
` */
`
15
16
``
16
``
`-
PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
`
``
17
`+
Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
`
17
18
`PyObject *callable,
`
18
19
`PyObject *args,
`
19
20
`PyObject *kwargs);
`
20
21
``
21
``
`-
/* Inline this */
`
``
22
`+
/* Deprecated since PyEval_CallObjectWithKeywords is deprecated */
`
22
23
`#define PyEval_CallObject(callable, arg) \
`
23
24
` PyEval_CallObjectWithKeywords(callable, arg, (PyObject *)NULL)
`
24
25
``
25
``
`-
PyAPI_FUNC(PyObject *) PyEval_CallFunction(PyObject *callable,
`
26
``
`-
const char *format, ...);
`
27
``
`-
PyAPI_FUNC(PyObject *) PyEval_CallMethod(PyObject *obj,
`
28
``
`-
const char *name,
`
29
``
`-
const char *format, ...);
`
``
26
`+
Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallFunction(
`
``
27
`+
PyObject *callable, const char *format, ...);
`
``
28
`+
Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallMethod(
`
``
29
`+
PyObject *obj, const char *name, const char *format, ...);
`
30
30
``
31
31
`#ifndef Py_LIMITED_API
`
32
32
`PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *);
`