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

``

`-

`

12

``

`-

`

13

``

`-

`

``

11

`+

`

``

12

`+

`

``

13

`+

`

``

14

`+

`

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 *);

`