On Fri, 02 Jan 2015 at 10:38AM +0100, Jeroen Demeyer wrote: > That's already the case (except that it returns an equal but not the > same object): > > sage: P = latex(ZZ) > sage: Q = latex(P) > sage: P == Q > True > sage: P is Q > False
I was going to reply with "no, that doesn't happen at all" but, as usual, I can't reproduce the problem that prompted my suggestion in the first place... sage: m = matrix([[1,2],[3,4]]) sage: latex(m) \left(\begin{array}{rr} 1 & 2 \\ 3 & 4 \end{array}\right) sage: latex(latex(m)) \left(\begin{array}{rr} 1 & 2 \\ 3 & 4 \end{array}\right) I *know* I've seen behavior like this: sage: latex(str(latex(m))) \begin{array}{l} \text{\texttt{{\char`\\}left({\char`\\}begin{\char`\{}array{\char`\}}{\char`\{}rr{\char`\}}}}\\ ...etc... without (intentionally) using str() or something similar. So, I guess I'll go back and try to figure out what I'm doing wrong...sorry for the noise... Dan -- --- Dan Drake ----- www.math.wisc.edu/~ddrake/ ------- -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: Digital signature