commit | e805ecc75237521818439c3c716c1017fcc7127e | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Jul 27 20:16:37 2009 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Mon Jul 27 20:16:37 2009 +0000 |
tree | 29301f0fd638dd628585d718f9e0dfe563df5b7b | |
parent | e7ac4f7745b6c1ec708cb88ab13f15bcfc130fc7 [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 8ecc405..b296f9f 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c
@@ -1187,7 +1187,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;