mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Rename _PyObject_FastCall() to _PyObject_FastCallDict()
Issue #27809: * Rename _PyObject_FastCall() function to _PyObject_FastCallDict() * Add _PyObject_FastCall(), _PyObject_CallNoArg() and _PyObject_CallArg1() macros calling _PyObject_FastCallDict()
This commit is contained in:
parent
c98afb7a26
commit
559bb6a713
12 changed files with 39 additions and 30 deletions
|
|
@ -4593,7 +4593,7 @@ PyEval_CallObjectWithKeywords(PyObject *func, PyObject *args, PyObject *kwargs)
|
|||
|
||||
if (args == NULL) {
|
||||
if (kwargs == NULL) {
|
||||
return _PyObject_FastCall(func, NULL, 0, 0);
|
||||
return _PyObject_CallNoArg(func);
|
||||
}
|
||||
|
||||
args = PyTuple_New(0);
|
||||
|
|
@ -5298,7 +5298,7 @@ import_name(PyFrameObject *f, PyObject *name, PyObject *fromlist, PyObject *leve
|
|||
stack[2] = f->f_locals == NULL ? Py_None : f->f_locals;
|
||||
stack[3] = fromlist;
|
||||
stack[4] = level;
|
||||
res = _PyObject_FastCall(import_func, stack, 5, NULL);
|
||||
res = _PyObject_FastCall(import_func, stack, 5);
|
||||
Py_DECREF(import_func);
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue