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

Unified Diff: Modules/_pickle.c

Issue 27809: _PyObject_FastCall(): add support for keyword arguments
Patch Set: Created 3 years 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 | « Modules/_functoolsmodule.c ('k') | Modules/_sre.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Modules/_pickle.c Mon Aug 22 14:29:54 2016 +0200
+++ b/Modules/_pickle.c Mon Aug 22 15:32:49 2016 +0200
@@ -357,7 +357,7 @@ static PyObject *
significantly reduced the number of function calls we do. Thus, the
benefits became marginal at best. */
- result = _PyObject_FastCall(func, &obj, 1, NULL);
+ result = _PyObject_CallArg1(func, obj);
Py_DECREF(obj);
return result;
}
@@ -1151,7 +1151,7 @@ static Py_ssize_t
return -1;
if (n == READ_WHOLE_LINE) {
- data = _PyObject_FastCall(self->readline, NULL, 0, NULL);
+ data = _PyObject_CallNoArg(self->readline);
}
else {
PyObject *len;
@@ -3948,7 +3948,7 @@ save(PicklerObject *self, PyObject *obj,
/* Check for a __reduce__ method. */
reduce_func = _PyObject_GetAttrId(obj, &PyId___reduce__);
if (reduce_func != NULL) {
- reduce_value = _PyObject_FastCall(reduce_func, NULL, 0, NULL);
+ reduce_value = _PyObject_CallNoArg(reduce_func);
}
else {
PyErr_Format(st->PicklingError,
« no previous file with comments | « Modules/_functoolsmodule.c ('k') | Modules/_sre.c » ('j') | no next file with comments »

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