[Python-checkins] cpython: dictviews_or() uses _Py_identifier
victor.stinner
python-checkins at python.org
Thu Oct 13 23:29:53 CEST 2011
http://hg.python.org/cpython/rev/d5c05e90be4c
changeset: 72914:d5c05e90be4c
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Thu Oct 13 22:51:17 2011 +0200
summary:
dictviews_or() uses _Py_identifier
files:
Objects/dictobject.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -2747,10 +2747,12 @@
{
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;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list