summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-07-27 20:16:37 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-07-27 20:16:37 (GMT)
commite805ecc75237521818439c3c716c1017fcc7127e (patch)
tree29301f0fd638dd628585d718f9e0dfe563df5b7b /Objects
parente7ac4f7745b6c1ec708cb88ab13f15bcfc130fc7 (diff)
downloadcpython-e805ecc75237521818439c3c716c1017fcc7127e.zip
cpython-e805ecc75237521818439c3c716c1017fcc7127e.tar.gz
cpython-e805ecc75237521818439c3c716c1017fcc7127e.tar.bz2
Issue 6573: Fix set.union() for cases where self is in the argument chain.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/setobject.c2
1 files changed, 1 insertions, 1 deletions
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 @@ 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;