def _intersect(self, other):
        from sympy.functions.elementary.integers import floor, ceiling
        if other == Interval(S.NegativeInfinity, S.Infinity) or other is S.Reals:
            return self
        elif other.is_Interval:
            s = Range(ceiling(other.left), floor(other.right) + 1)
            return s.intersect(other)  # take out endpoints if open interval
        return None
dataset/ETHPy150Open sympy/sympy/sympy/sets/fancysets.py/Integers._intersect/operator `is` -> `==`