mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
gh-106023: Remove _PyObject_FastCallTstate() function (#106273)
This commit is contained in:
parent
f3cf2ddd8d
commit
80b3d8f337
3 changed files with 6 additions and 30 deletions
|
|
@ -117,8 +117,7 @@ _PyObject_CallMethodIdOneArg(PyObject *self, _Py_Identifier *name, PyObject *arg
|
|||
|
||||
/* === Vectorcall protocol (PEP 590) ============================= */
|
||||
|
||||
// Call callable using tp_call. Arguments are like PyObject_Vectorcall()
|
||||
// or PyObject_FastCallDict() (both forms are supported),
|
||||
// Call callable using tp_call. Arguments are like PyObject_Vectorcall(),
|
||||
// except that nargs is plainly the number of arguments without flags.
|
||||
//
|
||||
// Export for shared stdlib extensions like the math extension,
|
||||
|
|
@ -204,14 +203,6 @@ _PyObject_CallNoArgs(PyObject *func) {
|
|||
}
|
||||
|
||||
|
||||
static inline PyObject *
|
||||
_PyObject_FastCallTstate(PyThreadState *tstate, PyObject *func,
|
||||
PyObject *const *args, Py_ssize_t nargs)
|
||||
{
|
||||
EVAL_CALL_STAT_INC_IF_FUNCTION(EVAL_CALL_API, func);
|
||||
return _PyObject_VectorcallTstate(tstate, func, args, (size_t)nargs, NULL);
|
||||
}
|
||||
|
||||
extern PyObject *const *
|
||||
_PyStack_UnpackDict(PyThreadState *tstate,
|
||||
PyObject *const *args, Py_ssize_t nargs,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue