diff options
author | Jeroen Demeyer <J.Demeyer@UGent.be> | 2019-07-24 12:02:49 (GMT) |
---|---|---|
committer | Inada Naoki <songofacandy@gmail.com> | 2019-07-24 12:02:49 (GMT) |
commit | 151b91dfd21a100ecb1eba9e293c0a8695bf3bf5 (patch) | |
tree | 7813d7f5302e1181f1f19d7d39883e7b0523f24b /Include/ceval.h | |
parent | e95ac20103437d8099fb91cd4468ab030852f3b7 (diff) | |
download | cpython-151b91dfd21a100ecb1eba9e293c0a8695bf3bf5.zip cpython-151b91dfd21a100ecb1eba9e293c0a8695bf3bf5.tar.gz cpython-151b91dfd21a100ecb1eba9e293c0a8695bf3bf5.tar.bz2 |
bpo-29548: deprecate PyEval_Call* functions (GH-14804)
Diffstat (limited to 'Include/ceval.h')
-rw-r--r-- | Include/ceval.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Include/ceval.h b/Include/ceval.h index e78194d..61db777 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -8,25 +8,25 @@ extern "C" { /* Interface to random parts in ceval.c */ /* PyEval_CallObjectWithKeywords(), PyEval_CallObject(), PyEval_CallFunction - * and PyEval_CallMethod are kept for backward compatibility: PyObject_Call(), - * PyObject_CallFunction() and PyObject_CallMethod() are recommended to call - * a callable object. + * and PyEval_CallMethod are deprecated. Since they are officially part of the + * stable ABI (PEP 384), they must be kept for backward compatibility. + * PyObject_Call(), PyObject_CallFunction() and PyObject_CallMethod() are + * recommended to call a callable object. */ -PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords( +Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords( PyObject *callable, PyObject *args, PyObject *kwargs); -/* Inline this */ +/* Deprecated since PyEval_CallObjectWithKeywords is deprecated */ #define PyEval_CallObject(callable, arg) \ PyEval_CallObjectWithKeywords(callable, arg, (PyObject *)NULL) -PyAPI_FUNC(PyObject *) PyEval_CallFunction(PyObject *callable, - const char *format, ...); -PyAPI_FUNC(PyObject *) PyEval_CallMethod(PyObject *obj, - const char *name, - const char *format, ...); +Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallFunction( + PyObject *callable, const char *format, ...); +Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallMethod( + PyObject *obj, const char *name, const char *format, ...); #ifndef Py_LIMITED_API PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *); |