By the way, this is because we (finally) changed the default ordering in the printer to lexicographic (no more "backwards" 2 + x).
Regarding the test failure, it's a little hard to tell what's going on from the traceback (and with no knowledge of Sage code), but it's perhaps caused by the fact that we implement infinity as Rational(1, 0). See http://code.google.com/p/sympy/issues/detail?id=281. Aaron Meurer On Thu, Jun 30, 2011 at 5:01 PM, Francois Bissey <[email protected]> wrote: >> I assume you mean doctests in sage. If you're referring to a doctest >> in SymPy, please point it out to us, as to our knowledge there are >> none in the release. >> > > I meant in sage. No issue in sympy. sympy-0.6.6 works fine with sage, > 0.6.7 doesn't and the stuff that I pasted is the only thing one should worry > about. Of course sage test like: > sage -t -long -force_lib "devel/sage- > main/sage/symbolic/expression_conversions.py" > ********************************************************************** > File "/usr/share/sage/devel/sage- > main/sage/symbolic/expression_conversions.py", line 559: > sage: f._sympy_() > Expected: > -asin(pi + x)/y + exp(x**2) > Got: > exp(x**2) - asin(x + pi)/y > ********************************************************************** > File "/usr/share/sage/devel/sage- > main/sage/symbolic/expression_conversions.py", line 591: > sage: s.arithmetic(f, f.operator()) > Expected: > 2 + x > Got: > x + 2 > ********************************************************************** > > should be fixed but they are trivial (notice it is a sage test :) ) > >> Oh, and I happen to know that Sage uses symbols(each_char=False) >> somewhere in the code. each_char is now False by default, and there >> is no need to set it to that. We originally removed this option, but >> added it back in as a deprecated feature when I noticed that Sage uses >> it. If you want each_char=True, you should replace it with separating >> symbols by spaces or commas, like symbols('x y z'). And if you have >> any bare symbols('xyz') in the code, with multiple characters and no >> each_char, you will need to change that. Also, if you run with python >> -Wd, you will see a DeprecationWarning for this. >> > > A little grepping turned: > sage/symbolic/expression_conversions.py: return > sympy.symbols(repr(ex), > each_char=False) > > as the only location. I'll remember to remove it when we upgrade to 0.7.0, > thanks for the tip. > > Francois > > This email may be confidential and subject to legal privilege, it may > not reflect the views of the University of Canterbury, and it is not > guaranteed to be virus free. If you are not an intended recipient, > please notify the sender immediately and erase all copies of the message > and any attachments. > > Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more > information. > > -- > You received this message because you are subscribed to the Google Groups > "sympy" 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?hl=en. > -- You received this message because you are subscribed to the Google Groups "sympy" 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?hl=en.
