Le jeudi 12 mai 2011 à 16:41 -0600, Aaron Meurer a écrit : > Would it require the ast module? That is only available on 2.6+. But > that's better than nothing. 1/2 vs. S(1)/2 is by far the number one > gotcha that I see.
That's really the only thing that prevents us from using a standard Python shell. I wish Python did the right thing and returned fractions.Fraction(1, 2) for 1/2... Since that's not the case, the next easiest option is to wrap all integer literals with Integer() - which shouldn't be hard in ipython, I hope. -- 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.
