def __le__(self, other):
        """Returns 1 if the lhs set is contained in the rhs set."""
        if len(self.elems) <= len(other.elems):
            ret = 1
            for elem in self.elems:
                if elem not in other.elems:
                    ret = 0
                    break
            return ret
        else:
            return 0
Returns 1 if the lhs set is contained in the rhs set.
recipes/Python/106469_Yet_another_Set_class_for_Python/recipe-106469.py