def __init__(self, seq = None):
        """The constructor. It can take any object giving an iterator as an optional
        argument to populate the new set."""
        self.elems = []
        if seq:
            for elem in seq:
                if elem not in self.elems:
                    self.elems.append(elem)
The constructor. It can take any object giving an iterator as an optional
        argument to populate the new set.
recipes/Python/106469_Yet_another_Set_class_for_Python/recipe-106469.py