summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorJeroen Demeyer <J.Demeyer@UGent.be>2019-09-11 11:01:01 (GMT)
committerPetr Viktorin <encukou@gmail.com>2019-09-11 11:01:01 (GMT)
commit7a6873cdb1f496447ac5d57ae457eacbb56b7972 (patch)
treea2a7e401399f18067c5b41f24f86d8deaf7f22c6 /Include
parent2d8d597bb8f882a7677db5a2739df0e617098634 (diff)
downloadcpython-7a6873cdb1f496447ac5d57ae457eacbb56b7972.zip
cpython-7a6873cdb1f496447ac5d57ae457eacbb56b7972.tar.gz
cpython-7a6873cdb1f496447ac5d57ae457eacbb56b7972.tar.bz2
bpo-37151: remove special case for PyCFunction from PyObject_Call (GH-14684)
bpo-37151: remove special case for PyCFunction from PyObject_Call Alse, make the undocumented function PyCFunction_Call an alias of PyObject_Call and deprecate it.
Diffstat (limited to 'Include')
-rw-r--r--Include/methodobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/methodobject.h b/Include/methodobject.h
index 9f5f7c4..3bccf5a 100644
--- a/Include/methodobject.h
+++ b/Include/methodobject.h
@@ -39,7 +39,7 @@ PyAPI_FUNC(int) PyCFunction_GetFlags(PyObject *);
#define PyCFunction_GET_FLAGS(func) \
(((PyCFunctionObject *)func) -> m_ml -> ml_flags)
#endif
-PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *);
+Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *);
struct PyMethodDef {
const char *ml_name; /* The name of the built-in function/method */