On 2010-08-20 00:59, Simon King wrote:
> But how is the representation created in the first place? That's the
> job of the method X._foo_init_. It is supposed to return a string that
> yields a representation of X when evaluated in foo. If X._foo_init_ is
> not there, X._interface_init_ is called, which by default returns
> repr(X) (which often makes sense, but of course not always).

But this does not explain why _foo_init_ should return a STRING
(clearly, this is often a bad idea).

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to