Skip to content

Commit 5e3794c

Browse files
jdemeyerlisroach
authored andcommitted
bpo-37151: remove _PyCFunction_FastCallDict (pythonGH-14269)
1 parent 7afd2ad commit 5e3794c

File tree

4 files changed

+5
-29
lines changed

4 files changed

+5
-29
lines changed

Include/methodobject.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ PyAPI_FUNC(int) PyCFunction_GetFlags(PyObject *);
4242
PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *);
4343

4444
#ifndef Py_LIMITED_API
45-
PyAPI_FUNC(PyObject *) _PyCFunction_FastCallDict(PyObject *func,
46-
PyObject *const *args,
47-
Py_ssize_t nargs,
48-
PyObject *kwargs);
49-
5045
PyAPI_FUNC(PyObject *) _PyCFunction_Vectorcall(PyObject *func,
5146
PyObject *const *stack,
5247
size_t nargsf,

Objects/call.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -495,24 +495,6 @@ _PyMethodDef_RawFastCallDict(PyMethodDef *method, PyObject *self,
495495
}
496496

497497

498-
PyObject *
499-
_PyCFunction_FastCallDict(PyObject *func,
500-
PyObject *const *args, Py_ssize_t nargs,
501-
PyObject *kwargs)
502-
{
503-
PyObject *result;
504-
505-
assert(func != NULL);
506-
assert(PyCFunction_Check(func));
507-
508-
result = _PyMethodDef_RawFastCallDict(((PyCFunctionObject*)func)->m_ml,
509-
PyCFunction_GET_SELF(func),
510-
args, nargs, kwargs);
511-
result = _Py_CheckFunctionResult(func, result, NULL);
512-
return result;
513-
}
514-
515-
516498
PyObject *
517499
_PyMethodDef_RawFastCallKeywords(PyMethodDef *method, PyObject *self,
518500
PyObject *const *args, Py_ssize_t nargs,

Python/ceval.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5018,10 +5018,10 @@ do_call_core(PyThreadState *tstate, PyObject *func, PyObject *callargs, PyObject
50185018
return NULL;
50195019
}
50205020

5021-
C_TRACE(result, _PyCFunction_FastCallDict(func,
5022-
&_PyTuple_ITEMS(callargs)[1],
5023-
nargs - 1,
5024-
kwdict));
5021+
C_TRACE(result, _PyObject_FastCallDict(func,
5022+
&_PyTuple_ITEMS(callargs)[1],
5023+
nargs - 1,
5024+
kwdict));
50255025
Py_DECREF(func);
50265026
return result;
50275027
}

Tools/gdb/libpython.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,8 +1563,7 @@ def is_other_python_frame(self):
15631563
if not caller:
15641564
return False
15651565

1566-
if caller in ('_PyCFunction_FastCallDict',
1567-
'_PyCFunction_Vectorcall',
1566+
if caller in ('_PyCFunction_Vectorcall',
15681567
'cfunction_call_varargs'):
15691568
arg_name = 'func'
15701569
# Within that frame:

0 commit comments

Comments
 (0)