#5174: _repr_ for large matrices should indicate how to see the entries
------------------------------+---------------------------------------------
   Reporter:  jason           |       Owner:  was          
       Type:  enhancement     |      Status:  needs_review 
   Priority:  major           |   Milestone:  sage-4.3     
  Component:  linear algebra  |    Keywords:               
Work_issues:                  |      Author:  John Palmieri
   Upstream:  N/A             |    Reviewer:               
     Merged:                  |  
------------------------------+---------------------------------------------

Comment(by jhpalmieri):

 Replying to [comment:4 was]:
 > > It would be pretty easy to change the print representation so
 > >  if there were no name attached to the object (e.g., if it were
 > > produced by another method, as in this example), then the extra
 > > message about "print ..." would be omitted. Opinions?
 >
 > How do you do that?  I would have no clue.

 A web search led me to a code snippet (by Georg Brandl, the author of
 Sphinx) which more or less searches through the {{{locals()}}} dictionary
 for the object, making a list of the variable names bound to it.   (See
 the part of the patch for the file sageinspect.py.)  If you exclude the
 variable names starting with "_", then if the resulting list is empty, you
 don't print the message.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5174#comment:5>
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