#14040: Configurable "tall list" output style
-------------------------------+--------------------------------------------
       Reporter:  vbraun       |         Owner:  jason   
           Type:  enhancement  |        Status:  new     
       Priority:  major        |     Milestone:  sage-5.7
      Component:  misc         |    Resolution:          
       Keywords:               |   Work issues:          
Report Upstream:  N/A          |     Reviewers:          
        Authors:               |     Merged in:          
   Dependencies:               |      Stopgaps:          
-------------------------------+--------------------------------------------

Comment (by vbraun):

 I've also folded the `is_atomic_repr()` methods that some parents carried
 into this framework. Here is the method docstring for reference:
 {{{
     def _repr_option(self, key):
         """
         Metadata about the :meth:`_repr_` output.

         INPUT:

         - ``key`` -- string. A key for different metadata informations
           that can be inquired about.

         Valid ``key`` arguments are:

         - ``'ascii_art'``: The :meth:`_repr_` output is multi-line
           ascii art and each line must be printed starting at the same
           column, or the meaning is lost.

         - ``'element_ascii_art'``: same but for the output of the
           elements. Used in :mod:`sage.misc.displayhook`.

         - ``'element_is_atomic'``: the elements print atomically, that
           is, parenthesis are not required when *printing* out any of
           `x - y`, `x + y`, `x^y` and `x/y`.

         OUTPUT:

         Boolean.

         EXAMPLES::

             sage: ZZ._repr_option('ascii_art')
             False
             sage: MatrixSpace(ZZ, 2)._repr_option('element_ascii_art')
             True
         """
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14040#comment:2>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to