Comment #9 on issue 1887 by [email protected]: Separate boolean and symbolic relationals
http://code.google.com/p/sympy/issues/detail?id=1887

"I think >, <, >=, and <= should default to the symbolic version, but perhaps they could be automatically converted to the boolean version when necessary."

Well, I don't think they should default to the symbolic version, I think I'd rather expect those to be booleans instead.

Anyway, we have to be sure that things like the following work:

if S(2) < S(3):
   print('2 is smaller !')

So, if you choose to keep those for the symbolic version, there should indeed be a .__bool__() method attached, to avoid more common misuses (though testing inequalities in such a way might be a bit slow).

If not, it would be *really* confusing.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to