8000 gh-106023: Rename _PyObject_FastCallDictTstate() (#106264) · python/cpython@e17420d · GitHub
[go: up one dir, main page]

Skip to content

Commit e17420d

Browse files
authored
gh-106023: Rename _PyObject_FastCallDictTstate() (#106264)
Rename _PyObject_FastCallDictTstate() to _PyObject_VectorcallDictTstate().
1 parent f1034ba commit e17420d

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

Include/internal/pycore_call.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ extern PyObject* _PyObject_Call_Prepend(
4949
PyObject *args,
5050
PyObject *kwargs);
5151

52-
extern PyObject* _PyObject_FastCallDictTstate(
52+
extern PyObject* _PyObject_VectorcallDictTstate(
5353
PyThreadState *tstate,
5454
PyObject *callable,
5555
PyObject *const *args,

Objects/call.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ PyObject_CallNoArgs(PyObject *func)
106106

107107

108108
PyObject *
109-
_PyObject_FastCallDictTstate(PyThreadState *tstate, PyObject *callable,
110-
PyObject *const *args, size_t nargsf,
111-
PyObject *kwargs)
109+
_PyObject_VectorcallDictTstate(PyThreadState *tstate, PyObject *callable,
110+
PyObject *const *args, size_t nargsf,
111+
PyObject *kwargs)
112112
{
113113
assert(callable != NULL);
114114

@@ -154,7 +154,7 @@ PyObject_VectorcallDict(PyObject *callable, PyObject *const *args,
154154
size_t nargsf, PyObject *kwargs)
155155
{
156156
PyThreadState *tstate = _PyThreadState_GET();
157-
return _PyObject_FastCallDictTstate(tstate, callable, args, nargsf, kwargs);
157+
return _PyObject_VectorcallDictTstate(tstate, callable, args, nargsf, kwargs);
158158
}
159159

160160
static void
@@ -453,7 +453,8 @@ PyEval_CallObjectWithKeywords(PyObject *callable,
453453
}
454454

455455
if (args == NULL) {
456-
return _PyObject_FastCallDictTstate(tstate, callable, NULL, 0, kwargs);
456+
return _PyObject_VectorcallDictTstate(tstate, callable,
457+
NULL, 0, kwargs);
457458
}
458459
else {
459460
return _PyObject_Call(tstate, callable, args, kwargs);
@@ -506,9 +507,9 @@ _PyObject_Call_Prepend(PyThreadState *tstate, PyObject *callable,
506507
_PyTuple_ITEMS(args),
507508
argcount * sizeof(PyObject *));
508509

509-
PyObject *result = _PyObject_FastCallDictTstate(tstate, callable,
510-
stack, argcount + 1,
511-
kwargs);
510+
PyObject *result = _PyObject_VectorcallDictTstate(tstate, callable,
511+
stack, argcount + 1,
512+
kwargs);
512513
if (stack != small_stack) {
513514
PyMem_Free(stack);
514515
}

0 commit comments

Comments
 (0)
0