mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +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
|
@ -380,7 +380,7 @@ call_trampoline(PyObject* callback,
|
|||
stack[2] = (arg != NULL) ? arg : Py_None;
|
||||
|
||||
/* call the Python-level function */
|
||||
result = _PyObject_FastCall(callback, stack, 3, NULL);
|
||||
result = _PyObject_FastCall(callback, stack, 3);
|
||||
|
||||
PyFrame_LocalsToFast(frame, 1);
|
||||
if (result == NULL) {
|
||||
|
@ -2122,7 +2122,7 @@ sys_pyfile_write_unicode(PyObject *unicode, PyObject *file)
|
|||
if (writer == NULL)
|
||||
goto error;
|
||||
|
||||
result = _PyObject_FastCall(writer, &unicode, 1, NULL);
|
||||
result = _PyObject_CallArg1(writer, unicode);
|
||||
if (result == NULL) {
|
||||
goto error;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue