summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-07-27 20:29:18 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-07-27 20:29:18 (GMT)
commit63853bbdc4d116386d617542a7d2da2233352bca (patch)
treec4ea197fa1b91fa7671b0d9f1493ce2eba1a24e5 /Objects
parent7bc66b10099552dae79fab232ea643296e10876e (diff)
downloadcpython-63853bbdc4d116386d617542a7d2da2233352bca.zip
cpython-63853bbdc4d116386d617542a7d2da2233352bca.tar.gz
cpython-63853bbdc4d116386d617542a7d2da2233352bca.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;