summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-03-04 06:05:36 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-03-04 06:05:36 (GMT)
commitf11b25b0813a1c07ddf55cca1512ef65eb97a636 (patch)
tree545c770c505f61b94535e35acc7a85f61ae31932 /Objects
parent25c0ef518d0e9267c4d31284a3ad93d4559d84c6 (diff)
downloadcpython-f11b25b0813a1c07ddf55cca1512ef65eb97a636.zip
cpython-f11b25b0813a1c07ddf55cca1512ef65eb97a636.tar.gz
cpython-f11b25b0813a1c07ddf55cca1512ef65eb97a636.tar.bz2
properly use the ObjArgs variant of CallMethod in dictview binary operations (closes #26478)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/dictobject.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index a494d6b..25619c1 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -3394,7 +3394,7 @@ dictviews_sub(PyObject* self, PyObject *other)
if (result == NULL)
return NULL;
- tmp = _PyObject_CallMethodId(result, &PyId_difference_update, "O", other);
+ tmp = _PyObject_CallMethodIdObjArgs(result, &PyId_difference_update, other, NULL);
if (tmp == NULL) {
Py_DECREF(result);
return NULL;
@@ -3414,7 +3414,7 @@ dictviews_and(PyObject* self, PyObject *other)
if (result == NULL)
return NULL;
- tmp = _PyObject_CallMethodId(result, &PyId_intersection_update, "O", other);
+ tmp = _PyObject_CallMethodIdObjArgs(result, &PyId_intersection_update, other, NULL);
if (tmp == NULL) {
Py_DECREF(result);
return NULL;
@@ -3434,7 +3434,7 @@ dictviews_or(PyObject* self, PyObject *other)
if (result == NULL)
return NULL;
- tmp = _PyObject_CallMethodId(result, &PyId_update, "O", other);
+ tmp = _PyObject_CallMethodIdObjArgs(result, &PyId_update, other, NULL);
if (tmp == NULL) {
Py_DECREF(result);
return NULL;
@@ -3454,8 +3454,7 @@ dictviews_xor(PyObject* self, PyObject *other)
if (result == NULL)
return NULL;
- tmp = _PyObject_CallMethodId(result, &PyId_symmetric_difference_update, "O",
- other);
+ tmp = _PyObject_CallMethodIdObjArgs(result, &PyId_symmetric_difference_update, other, NULL);
if (tmp == NULL) {
Py_DECREF(result);
return NULL;