diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-13 20:51:17 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-13 20:51:17 (GMT) |
commit | d1a9cc29b9b737b63d953f6ff9464280d273c429 (patch) | |
tree | 7426f86f46c054c7f0be5143530a01c132f7fe90 /Objects | |
parent | bfc6d74b257277d61395ed077e10a6fb9cfb583e (diff) | |
download | cpython-d1a9cc29b9b737b63d953f6ff9464280d273c429.zip cpython-d1a9cc29b9b737b63d953f6ff9464280d273c429.tar.gz cpython-d1a9cc29b9b737b63d953f6ff9464280d273c429.tar.bz2 |
dictviews_or() uses _Py_identifier
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/dictobject.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 220e621..28c3dc1 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -2747,10 +2747,12 @@ dictviews_or(PyObject* self, PyObject *other) { PyObject *result = PySet_New(self); PyObject *tmp; + _Py_identifier(update); + if (result == NULL) return NULL; - tmp = PyObject_CallMethod(result, "update", "O", other); + tmp = _PyObject_CallMethodId(result, &PyId_update, "O", other); if (tmp == NULL) { Py_DECREF(result); return NULL; |