Comment #7 on issue 2865 by [email protected]: str(Matrix(...)) should give "Matrix(...)"
http://code.google.com/p/sympy/issues/detail?id=2865
Still, I do not understand why we must aplly this to str printer. sympy.printing.str.__doc__ """ A Printer for generating readable representation of most sympy classes. """ sympy.printing.repr.__doc__ """ A Printer for generating executable code. The most important function here is srepr that returns a string so that the relation eval(srepr(expr))=expr holds in an appropriate environment. """
Rational(1, 2)
1/2
str(Rational(1, 2))
1/2
1/2
0.5
1//2
0
rstr(Rational(1, 2))
Rational(1, 2) -- You received this message because you are subscribed to the Google Groups "sympy-issues" 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-issues?hl=en.
