#7805

Fixed the bug by returning False when the method _contains of an Interval gets another Interval
On Mon, Aug 04, 2014 at 01:57:14AM -0700, Samuel Lê wrote:
>    In sympy/sets/sets.py:
> 
>  > @@ -844,7 +844,11 @@ def _contains(self, other):
>  >          from sympy.assumptions.ask import ask, Q
>  >          if ask(Q.real(other)) is False:
>  >              return False
>  > -
>  > +
>  > +        if type(other) is Interval:
> 
>    So you want _contains to return False if other is not a number?

No.

> in this
>    case, why not do something like (pseudo code):
>    if is_symbolic(other):
>    Raise Exception

Because Sympy is a CAS.  We like symbolic inputs.