summaryrefslogtreecommitdiff
path: root/Modules/_pickle.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-08-22 22:48:54 +0200
committerVictor Stinner <victor.stinner@gmail.com>2016-08-22 22:48:54 +0200
commit559bb6a71399af3b1b2a0ba97230d2bcc649e993 (patch)
tree94927374ac025ae249aa487ce4a17df99c3df2d8 /Modules/_pickle.c
parentc98afb7a26ac611a4544c5b8dd445d8ea05e6360 (diff)
downloadcpython-git-559bb6a71399af3b1b2a0ba97230d2bcc649e993.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 'Modules/_pickle.c')
-rw-r--r--Modules/_pickle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index b454134270..fed3fa221e 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -357,7 +357,7 @@ _Pickle_FastCall(PyObject *func, PyObject *obj)
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 @@ _Unpickler_ReadFromFile(UnpicklerObject *self, Py_ssize_t n)
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, int pers_save)
/* 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,