Commit 81ad32e4 authored by Raymond Hettinger's avatar Raymond Hettinger

Speedup set.update by using the override mode for PyDict_Merge().

parent eebb641f
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment