Updates:
        Status: Accepted
        Blockedon: 2832

Comment #1 on issue 2960 by asmeu...@gmail.com: It right 0 < x < 1 ?
http://code.google.com/p/sympy/issues/detail?id=2960

Python evaluates "a < b < c" as "a < b and b < c". There's no way to override this to return a more advanced symbolic object (that would require http://www.python.org/dev/peps/pep-0335/). This evaluates both sides as a boolean, which presently, for relationals, gives True or False almost randomly for anything that isn't automatically evaluated.

This should be fixed by issue 2832, which would cause a boolean evaluation of a relational to raise ValueError. Then, those would both raise ValueError.

For now, avoid doing multiple inequality comparisons unless you know that each one will evaluate to True or False automatically.

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

Reply via email to