(self, other)
return self.__class__(el for el in self if el in other)
This function should only be used internally

        See Set._intersect for docstring
This function should only be used internally
This function should only be used internally
def _intersect(self, other):
        """
        This function should only be used internally

        See Set._intersect for docstring
        """
        if isinstance(other, self.__class__):
            return self.__class__(*(self._elements & other._elements))
        return self.__class__(el for el in self if el in other)
def _intersect ( self , other ) : if isinstance ( other , self . __class__ ) : return self . __class__ ( * ( self . _elements & other . _elements ) ) return self . __class__ ( el for el in self if el in other )