diff options
author | Raymond Hettinger <python@rcn.com> | 2003-12-15 21:16:06 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-12-15 21:16:06 (GMT) |
commit | 81ad32e43591bbc93af14da030b0946a896270f4 (patch) | |
tree | 8e0e7a32966f538afc0f695aeba3cef29dda6e67 | |
parent | eebb641f236823d45d356aa5834dc453927acf8d (diff) | |
download | cpython-81ad32e43591bbc93af14da030b0946a896270f4.zip cpython-81ad32e43591bbc93af14da030b0946a896270f4.tar.gz cpython-81ad32e43591bbc93af14da030b0946a896270f4.tar.bz2 |
Speedup set.update by using the override mode for PyDict_Merge().
-rw-r--r-- | Objects/setobject.c | 2 |
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; } |