Skip to content

Commit

Permalink
pythongh-106023: Rename _PyObject_FastCallDictTstate() (python#106264)
Browse files Browse the repository at this point in the history
Rename _PyObject_FastCallDictTstate() to
_PyObject_VectorcallDictTstate().
  • Loading branch information
vstinner authored Jun 30, 2023
1 parent f1034ba commit e17420d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Include/internal/pycore_call.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ extern PyObject* _PyObject_Call_Prepend(
PyObject *args,
PyObject *kwargs);

extern PyObject* _PyObject_FastCallDictTstate(
extern PyObject* _PyObject_VectorcallDictTstate(
PyThreadState *tstate,
PyObject *callable,
PyObject *const *args,
Expand Down
17 changes: 9 additions & 8 deletions Objects/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ PyObject_CallNoArgs(PyObject *func)


PyObject *
_PyObject_FastCallDictTstate(PyThreadState *tstate, PyObject *callable,
PyObject *const *args, size_t nargsf,
PyObject *kwargs)
_PyObject_VectorcallDictTstate(PyThreadState *tstate, PyObject *callable,
PyObject *const *args, size_t nargsf,
PyObject *kwargs)
{
assert(callable != NULL);

Expand Down Expand Up @@ -154,7 +154,7 @@ PyObject_VectorcallDict(PyObject *callable, PyObject *const *args,
size_t nargsf, PyObject *kwargs)
{
PyThreadState *tstate = _PyThreadState_GET();
return _PyObject_FastCallDictTstate(tstate, callable, args, nargsf, kwargs);
return _PyObject_VectorcallDictTstate(tstate, callable, args, nargsf, kwargs);
}

static void
Expand Down Expand Up @@ -453,7 +453,8 @@ PyEval_CallObjectWithKeywords(PyObject *callable,
}

if (args == NULL) {
return _PyObject_FastCallDictTstate(tstate, callable, NULL, 0, kwargs);
return _PyObject_VectorcallDictTstate(tstate, callable,
NULL, 0, kwargs);
}
else {
return _PyObject_Call(tstate, callable, args, kwargs);
Expand Down Expand Up @@ -506,9 +507,9 @@ _PyObject_Call_Prepend(PyThreadState *tstate, PyObject *callable,
_PyTuple_ITEMS(args),
argcount * sizeof(PyObject *));

PyObject *result = _PyObject_FastCallDictTstate(tstate, callable,
stack, argcount + 1,
kwargs);
PyObject *result = _PyObject_VectorcallDictTstate(tstate, callable,
stack, argcount + 1,
kwargs);
if (stack != small_stack) {
PyMem_Free(stack);
}
Expand Down

0 comments on commit e17420d

Please sign in to comment.