On Sat, Feb 13, 2010 at 11:10 PM, Fernando Perez <fperez.net@gmail.com> wrote:
On Sat, Feb 13, 2010 at 10:32 PM, Charles R Harris
<charlesr.harris@gmail.com> wrote:
> Note that ipython calls __repr__ to print the output. __repr__ is supposed
> to provide a string that can be used to recreate the object, a pretty
> printed version of __repr__ doesn't provide that. Also, an array or list of
IPython calls repr because that's the convention the standard python
shell uses, and I decided long ago to follow suit.
> polynomials, having pretty printed entries looks pretty ugly with the
> newlines and all -- try it with Poly1d. I was also thinking that someone
> might want to provide a better display at some point, drawing on a canvas,
> for instance. And what happens when the degree gets up over 100, which is
> quite reasonable with the Cheybshev polynomials?
sympy has pretty remarkable pretty-printing support, perhaps some of
that could be reused. Just a thought.