Comparisons that are undetermined depending on values of Symbols are not supposed to return a truth value. E.q., the following works correctly:
In [2]: bool(Eq(x,5))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[snip]
TypeError: cannot determine truth value of Relational
(and similar exception for bool(Eq(x,6)), of course)
However, shouldn't the following also return a TypeError saying it cannot determine a truth value?
In [4]: bool(Or(Eq(x,5),Eq(x,6)))
Out[4]: True
In [7]: bool(And(Eq(x,5),Eq(x,6)))
Out[7]: True
It would seem this is a bug or am I missing something?
Duane