[sympy] Re: repr and srepr

2011-05-28 Thread Vinzent Steinberg
On 27 Mai, 21:53, Ronan Lamy wrote: > That should be true as well - repr is supposed to behave like that. And > it's easy to implement: just define the __repr__ method to return the > right thing. For sure it is trivial to implement, but whether it is the right thing is arguable. Personally, I su

[sympy] Re: repr and srepr

2011-05-29 Thread Vinzent Steinberg
On 28 Mai, 17:40, Ronan Lamy wrote: > I don't care about that, because we don't put stuff inside containers > that often, because I usually want the repr when I look at .args, and > because the only shell I really care about is ipython, which prints this > nicely in any case. I care about pure py

Re: [sympy] Re: repr and srepr

2011-05-28 Thread Ronan Lamy
Le samedi 28 mai 2011 à 05:14 -0700, Vinzent Steinberg a écrit : > On 27 Mai, 21:53, Ronan Lamy wrote: > > That should be true as well - repr is supposed to behave like that. And > > it's easy to implement: just define the __repr__ method to return the > > right thing. > > For sure it is trivial

Re: [sympy] Re: repr and srepr

2011-05-29 Thread Ronan Lamy
Le dimanche 29 mai 2011 à 08:25 -0700, Vinzent Steinberg a écrit : > On 28 Mai, 17:40, Ronan Lamy wrote: > > I don't care about that, because we don't put stuff inside containers > > that often, because I usually want the repr when I look at .args, and > > because the only shell I really care abou

Re: [sympy] Re: repr and srepr

2011-06-01 Thread Aaron Meurer
A few things: - Even if we made isympy play nice, doctests assume just a regular pure Python shell. So any doctest of a function that somehow has a list, tuple, or dict of sympy objects would have to be changed to either use less nice format (srepr()), or to use a printer that gets around it. -

Re: [sympy] Re: repr and srepr

2011-06-01 Thread Ronan Lamy
Le mercredi 01 juin 2011 à 20:12 -0600, Aaron Meurer a écrit : > A few things: > > - Even if we made isympy play nice, doctests assume just a regular > pure Python shell. So any doctest of a function that somehow has a > list, tuple, or dict of sympy objects would have to be changed to > either u

Re: [sympy] Re: repr and srepr

2011-06-02 Thread Aaron S. Meurer
On Jun 1, 2011, at 9:35 PM, Ronan Lamy wrote: > Le mercredi 01 juin 2011 à 20:12 -0600, Aaron Meurer a écrit : >> A few things: >> >> - Even if we made isympy play nice, doctests assume just a regular >> pure Python shell. So any doctest of a function that somehow has a >> list, tuple, or dict o