def add(self, element):
        try:
            self._data[element] = True
        except TypeError:
            transform = getattr(element, "__as_immutable__", None)
            if transform is None:
                raise # re-raise the TypeError exception we caught
            self._data[transform()] = True
Add an element to a set.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/sets.py/Set.add