diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-08-22 22:48:54 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-08-22 22:48:54 +0200 |
commit | de03c6d8066496680a1ea99ff9e67e28852b0007 (patch) | |
tree | 7a6256b3e49a0ed76fc3da9237a4a170663f7c86 /Python/ceval.c | |
parent | 02e2dbc157224eb09447bd613e82649f52728a16 (diff) | |
download | cpython-de03c6d8066496680a1ea99ff9e67e28852b0007.tar.gz |
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()
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index bd0cbe758f..96380bca96 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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; } |