Vinzent, I played around with this more and by implemeting _sympystr_ and _sympyrepr_ things behave much better all around. The only other things that types might want to implement is _pretty_ which will now be called for the PrettyPrinter. Thanks for the tip though.
Cheers, Brian On Sun, Mar 28, 2010 at 2:07 PM, Vinzent Steinberg <vinzent.steinb...@googlemail.com> wrote: > On Mar 27, 6:34 pm, jegerjensen <jensen.oyv...@gmail.com> wrote: >> Another thing: is __repr__() still the recommended way to get nice >> printing? There are some closed issues about that, and I got the >> impression it should be avoided, but I don't know what should be used >> instead... > > I think it is recommended to use the sympy functions. in sympy usually > repr() and str() are doing the same, this is for interactive usage and > because str(list) uses repr(). > > Vinzent > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to sy...@googlegroups.com. > To unsubscribe from this group, send email to > sympy+unsubscr...@googlegroups.com. > 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 sy...@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.