commit | 81ad32e43591bbc93af14da030b0946a896270f4 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Dec 15 21:16:06 2003 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Mon Dec 15 21:16:06 2003 +0000 |
tree | 8e0e7a32966f538afc0f695aeba3cef29dda6e67 | |
parent | eebb641f236823d45d356aa5834dc453927acf8d [diff] |
Speedup set.update by using the override mode for PyDict_Merge().
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 @@ 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; }