#1918: Matrices that are printed are not aligned
------------------------------+---------------------------------------------
   Reporter:  jason           |       Owner:  was         
       Type:  enhancement     |      Status:  needs_review
   Priority:  major           |   Milestone:  sage-4.3    
  Component:  linear algebra  |    Keywords:              
Work_issues:                  |      Author:              
   Upstream:  N/A             |    Reviewer:              
     Merged:                  |  
------------------------------+---------------------------------------------

Comment(by hivert):

 To be more specific, I'd like to be able to write thing like that
 {{{
 sage: class bla():
 ....:     def __init__(self, str): self.str=str
 ....:     def __repr__(self): return self.str
 }}}
 And without patching displayhook, to get
 {{{
 sage: sage.misc.displayhook._check_tall_list_and_print(sys.stdout, [a,b])
 [
        dsf
 werew  sdf
 sdfd , sf
 ]
 }}}
 instead of...
 {{{
 sage: [bla("werew\nsdfd"), bla("dsf\nsdf\nsf")]
 [werew
 sdfd, dsf
 sdf
 sf]
 }}}
 I'm not sure what is the correct mechanism of plugin. should we add in the
 class a method called say {{{_repr_use2d_}}} ?

 Florent

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/1918#comment:8>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--

You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.


Reply via email to