Remove an element.  Do not raise an exception if absent.

def discard(self, element):
        """Remove an element.  Do not raise an exception if absent."""
        key = self._transform(element)
        if key in self._elements:
            del self._elements[key]