commit | 30006c76f4acaaa66df47da697d900c369a892af | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Jul 27 20:33:25 2009 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Mon Jul 27 20:33:25 2009 +0000 |
tree | 6532ef9856fab77f73c1ed153c38b5f9e893e7ff | |
parent | da21dd076b8b06463ce9d2aebe1480ce1cf14083 [diff] [blame] |
Issue 6573: Fix set.union() for cases where self is in the argument chain.
diff --git a/Objects/setobject.c b/Objects/setobject.c index a55bbb7..dd45380 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c
@@ -1183,7 +1183,7 @@ for (i=0 ; i<PyTuple_GET_SIZE(args) ; i++) { other = PyTuple_GET_ITEM(args, i); if ((PyObject *)so == other) - return (PyObject *)result; + continue; if (set_update_internal(result, other) == -1) { Py_DECREF(result); return NULL;