#17821: Refactor show() methods, rename to pretty_print
-------------------------------------+-------------------------------------
Reporter: vbraun | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-6.6
Component: graphics | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vbraun/refactor_pretty_print | 42f4985c93ebf3afb3772ad2298673ba1db372da
Dependencies: #17234, #17980, | Stopgaps:
#18028, #18032 |
-------------------------------------+-------------------------------------
Changes (by vbraun):
* commit: => 42f4985c93ebf3afb3772ad2298673ba1db372da
* dependencies: #17234, #17980, #18028 => #17234, #17980, #18028, #18032
Old description:
> * Various show methods should maybe get moved to the !SageObject class,
> or perhaps in some category.
> * Similarly, in graphics.py, a bit of refactoring could be done by
> creating a common parent for Graphics and !GraphicsArray (maybe something
> like !GraphicsBase)
> * show should be an alias for pretty_print, which should always tries to
> use a rich output for an object (falling back on the plain text), while
> the plain print function should always use the plain text for the object
> * Find a better name for the viewer='...' keyword option that works also
> for plain text / latex / 2d animation formats / ...
New description:
* Various show methods should maybe get moved to the !SageObject class, or
perhaps in some category.
* show should be an alias for pretty_print, which should always tries to
use a rich output for an object (falling back on the plain text), while
the plain print function should always use the plain text for the object
--
Comment:
Refactoring graphics is now #18033, already too much going on here.
This basically works now, except that it unearthed various broken stuff
elsewhere that wasn't exercised before.
----
New commits:
||[http://git.sagemath.org/sage.git/commit/?id=8577e873851c8ca7789b81f65c450449c1cfd145
8577e87]||{{{Refactor pretty_print/show to use the rich output system}}}||
||[http://git.sagemath.org/sage.git/commit/?id=42f4985c93ebf3afb3772ad2298673ba1db372da
42f4985]||{{{remove the unused and broken print_or_typeset}}}||
--
Ticket URL: <http://trac.sagemath.org/ticket/17821#comment:9>
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.
For more options, visit https://groups.google.com/d/optout.