Hi, On Sat, Aug 31, 2013 at 9:35 AM, Aaron Meurer <[email protected]> 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 like the above expecting x and y to be > numbers, but when symbols are passed in, it would arbitrarily be True > or False. > > This also fits with the Python 3 idiom that you can't order things > unless they have a well-defined order to them. > > If you want a canonical (but arbitrary) way to order SymPy > expressions, use default_sort_key, like > > sorted(syms, key=default_sort_key)
RIght. I only bring it up because I'm guessing that projects like ours that depend on Sympy will have to update their code. We try and put in a deprecation cycle for stuff like this but I guess this change was a hard one to introduce gradually. Cheers, Matthew -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
