summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen Demeyer <J.Demeyer@UGent.be>2019-06-20 15:38:46 (GMT)
committerInada Naoki <songofacandy@gmail.com>2019-06-20 15:38:45 (GMT)
commit7e1a9aacff95c68d284f31666fe293fa2db5406d (patch)
tree69fd6366a3bb66c886d4ebcab44aea99c9207920
parent8713aa6dfb2a17d6de91943ef1eb0ddba58f5b4a (diff)
downloadcpython-7e1a9aacff95c68d284f31666fe293fa2db5406d.zip
cpython-7e1a9aacff95c68d284f31666fe293fa2db5406d.tar.gz
cpython-7e1a9aacff95c68d284f31666fe293fa2db5406d.tar.bz2
bpo-37151: remove _PyCFunction_FastCallDict (GH-14269)
-rw-r--r--Include/methodobject.h5
-rw-r--r--Objects/call.c18
-rw-r--r--Python/ceval.c8
-rwxr-xr-xTools/gdb/libpython.py3
4 files changed, 5 insertions, 29 deletions
diff --git a/Include/methodobject.h b/Include/methodobject.h
index e92adde..f4a6682 100644
--- a/Include/methodobject.h
+++ b/Include/methodobject.h
@@ -42,11 +42,6 @@ PyAPI_FUNC(int) PyCFunction_GetFlags(PyObject *);
PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *);
#ifndef Py_LIMITED_API
-PyAPI_FUNC(PyObject *) _PyCFunction_FastCallDict(PyObject *func,
- PyObject *const *args,
- Py_ssize_t nargs,
- PyObject *kwargs);
-
PyAPI_FUNC(PyObject *) _PyCFunction_Vectorcall(PyObject *func,
PyObject *const *stack,
size_t nargsf,
diff --git a/Objects/call.c b/Objects/call.c
index 75dbd6f..8a1ce7f 100644
--- a/Objects/call.c
+++ b/Objects/call.c
@@ -496,24 +496,6 @@ exit:
PyObject *
-_PyCFunction_FastCallDict(PyObject *func,
- PyObject *const *args, Py_ssize_t nargs,
- PyObject *kwargs)
-{
- PyObject *result;
-
- assert(func != NULL);
- assert(PyCFunction_Check(func));
-
- result = _PyMethodDef_RawFastCallDict(((PyCFunctionObject*)func)->m_ml,
- PyCFunction_GET_SELF(func),
- args, nargs, kwargs);
- result = _Py_CheckFunctionResult(func, result, NULL);
- return result;
-}
-
-
-PyObject *
_PyMethodDef_RawFastCallKeywords(PyMethodDef *method, PyObject *self,
PyObject *const *args, Py_ssize_t nargs,
PyObject *kwnames)
diff --git a/Python/ceval.c b/Python/ceval.c
index 60367a6..4ca986a 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -5018,10 +5018,10 @@ do_call_core(PyThreadState *tstate, PyObject *func, PyObject *callargs, PyObject
return NULL;
}
- C_TRACE(result, _PyCFunction_FastCallDict(func,
- &_PyTuple_ITEMS(callargs)[1],
- nargs - 1,
- kwdict));
+ C_TRACE(result, _PyObject_FastCallDict(func,
+ &_PyTuple_ITEMS(callargs)[1],
+ nargs - 1,
+ kwdict));
Py_DECREF(func);
return result;
}
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py
index 93f720a..abfea96 100755
--- a/Tools/gdb/libpython.py
+++ b/Tools/gdb/libpython.py
@@ -1563,8 +1563,7 @@ class Frame(object):
if not caller:
return False
- if caller in ('_PyCFunction_FastCallDict',
- '_PyCFunction_Vectorcall',
+ if caller in ('_PyCFunction_Vectorcall',
'cfunction_call_varargs'):
arg_name = 'func'
# Within that frame: