Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(177421)

Unified Diff: Objects/typeobject.c

Issue 27809: _PyObject_FastCall(): add support for keyword arguments
Patch Set: Created 2 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Objects/iterobject.c ('k') | Python/ceval.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Objects/typeobject.c Mon Aug 22 14:29:54 2016 +0200
+++ b/Objects/typeobject.c Mon Aug 22 15:32:49 2016 +0200
@@ -1450,7 +1450,7 @@ call_method(PyObject *o, _Py_Identifier
Py_DECREF(args);
}
else {
- retval = _PyObject_FastCall(func, NULL, 0, NULL);
+ retval = _PyObject_CallNoArg(func);
}
Py_DECREF(func);
@@ -1490,7 +1490,7 @@ call_maybe(PyObject *o, _Py_Identifier *
Py_DECREF(args);
}
else {
- retval = _PyObject_FastCall(func, NULL, 0, NULL);
+ retval = _PyObject_CallNoArg(func);
}
Py_DECREF(func);
@@ -5834,7 +5834,7 @@ slot_sq_item(PyObject *self, Py_ssize_t
goto error;
}
- retval = _PyObject_FastCall(func, &ival, 1, NULL);
+ retval = _PyObject_CallArg1(func, ival);
Py_DECREF(func);
Py_DECREF(ival);
return retval;
@@ -5875,7 +5875,7 @@ slot_sq_contains(PyObject *self, PyObjec
return -1;
}
if (func != NULL) {
- res = _PyObject_FastCall(func, &value, 1, NULL);
+ res = _PyObject_CallArg1(func, value);
Py_DECREF(func);
if (res != NULL) {
result = PyObject_IsTrue(res);
@@ -5967,7 +5967,7 @@ slot_nb_bool(PyObject *self)
using_len = 1;
}
- value = _PyObject_FastCall(func, NULL, 0, NULL);
+ value = _PyObject_CallNoArg(func);
if (value == NULL) {
goto error;
}
@@ -6245,7 +6245,7 @@ slot_tp_richcompare(PyObject *self, PyOb
PyErr_Clear();
Py_RETURN_NOTIMPLEMENTED;
}
- res = _PyObject_FastCall(func, &other, 1, NULL);
+ res = _PyObject_CallArg1(func, other);
Py_DECREF(func);
return res;
}
@@ -6266,7 +6266,7 @@ slot_tp_iter(PyObject *self)
}
if (func != NULL) {
- res = _PyObject_FastCall(func, NULL, 0, NULL);
+ res = _PyObject_CallNoArg(func);
Py_DECREF(func);
return res;
}
« no previous file with comments | « Objects/iterobject.c ('k') | Python/ceval.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+