def union ( self , other ) : obj = self . _clone ( ) obj . union_update ( other ) return obj
how to union two set types in python
Return a new set which is the union of I { self } and I { other } .
def union(self, other):
        """Return a new set which is the union of I{self} and I{other}.

        @param other: the other set
        @type other: Set object
        @rtype: the same type as I{self}
        """

        obj = self._clone()
        obj.union_update(other)
        return obj