>
> Just to add to this.  Python is a good choice for Sage because we don't
> want to write a language from scratch (like _every_ single other serious
> computer algebra system did).  But I  emphatically don't think that this
> means Sage has to follow every single Python rule or convention.

Definitely. But it helps when interacting with other (Python) packages.

I recently asked about exactly the same problem on the ipython list:

http://lists.ipython.scipy.org/pipermail/ipython-dev/2008-January/003459.html

http://lists.ipython.scipy.org/pipermail/ipython-dev/2008-January/003460.html

because we use repr() for multiline asciiart printing in sympy
(optionally) and this
messes up ipython. Obviously, because we are misusing repr() for
things it is not meant for.

So I think it's good to follow conventions and use str() for nice
string representation.

Ondrej

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to