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
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
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
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
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.
-
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
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