diff options
author | Raymond Hettinger <python@rcn.com> | 2009-07-27 20:33:25 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-07-27 20:33:25 (GMT) |
commit | 30006c76f4acaaa66df47da697d900c369a892af (patch) | |
tree | 6532ef9856fab77f73c1ed153c38b5f9e893e7ff /Objects/setobject.c | |
parent | da21dd076b8b06463ce9d2aebe1480ce1cf14083 (diff) | |
download | cpython-30006c76f4acaaa66df47da697d900c369a892af.zip cpython-30006c76f4acaaa66df47da697d900c369a892af.tar.gz cpython-30006c76f4acaaa66df47da697d900c369a892af.tar.bz2 |
Issue 6573: Fix set.union() for cases where self is in the argument chain.
Diffstat (limited to 'Objects/setobject.c')
-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 a55bbb7..dd45380 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -1183,7 +1183,7 @@ set_union(PySetObject *so, PyObject *args) 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; |