commit | 63853bbdc4d116386d617542a7d2da2233352bca | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Jul 27 20:29:18 2009 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Mon Jul 27 20:29:18 2009 +0000 |
tree | c4ea197fa1b91fa7671b0d9f1493ce2eba1a24e5 | |
parent | 7bc66b10099552dae79fab232ea643296e10876e [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;