summaryrefslogtreecommitdiffstats
path: root/Objects/setobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-12-15 21:16:06 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-12-15 21:16:06 (GMT)
commit81ad32e43591bbc93af14da030b0946a896270f4 (patch)
tree8e0e7a32966f538afc0f695aeba3cef29dda6e67 /Objects/setobject.c
parenteebb641f236823d45d356aa5834dc453927acf8d (diff)
downloadcpython-81ad32e43591bbc93af14da030b0946a896270f4.zip
cpython-81ad32e43591bbc93af14da030b0946a896270f4.tar.gz
cpython-81ad32e43591bbc93af14da030b0946a896270f4.tar.bz2
Speedup set.update by using the override mode for PyDict_Merge().
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r--Objects/setobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index 4fbb645..6070fb6 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -15,7 +15,7 @@ set_update(PySetObject *so, PyObject *other)
PyObject *item, *data, *it;
if (PyAnySet_Check(other)) {
- if (PyDict_Merge(so->data, ((PySetObject *)other)->data, 0) == -1)
+ if (PyDict_Merge(so->data, ((PySetObject *)other)->data, 1) == -1)
return NULL;
Py_RETURN_NONE;
}