Re: [sympy] Symbol sorting raises error - intended?

2013-08-31 Thread Matthew Brett
Hi, On Sat, Aug 31, 2013 at 9:35 AM, Aaron Meurer wrote: > Yes, this is absolutely intended. Things like > > if x < y: > ... > > no longer work, unless x - y is explicitly known to be negative or > nonnegative. This fixes a lot of subtle bugs that pop up, because > people will write things li

Re: [sympy] Symbol sorting raises error - intended?

2013-08-31 Thread Aaron Meurer
I added a note about this to the release notes for the next version. https://github.com/sympy/sympy/wiki/release-notes-for-0.7.4#other Aaron Meurer On Sat, Aug 31, 2013 at 10:35 AM, Aaron Meurer wrote: > Yes, this is absolutely intended. Things like > > if x < y: > ... > > no longer work, un

Re: [sympy] Symbol sorting raises error - intended?

2013-08-31 Thread Aaron Meurer
Yes, this is absolutely intended. Things like if x < y: ... no longer work, unless x - y is explicitly known to be negative or nonnegative. This fixes a lot of subtle bugs that pop up, because people will write things like the above expecting x and y to be numbers, but when symbols are passed

[sympy] Symbol sorting raises error - intended?

2013-08-31 Thread Matthew Brett
Hi, I just noticed this in current master (not in 0.7.3): In [4]: from sympy import symbols In [5]: syms = symbols('c, b, a') In [6]: sorted(syms) --- TypeError Traceback (most recent call la