#9370: customize printing of elements in CombinatorialFreeModules
-----------------------------+----------------------------------------------
Reporter: jhpalmieri | Owner: sage-combinat
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-4.6
Component: combinatorics | Keywords:
Author: John Palmieri | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Changes (by nthiery):
* status: needs_review => needs_work
Comment:
Hi John,
Sorry for letting this patch rot ... I like it much though! Thanks! As
you, I am bothered by the current interaction between unique
representation and printing customization, but don't have a good solution
at this point.
I just went briefly through it. Three minor suggestions:
- The logic in print_options could be factored out using something along:
{{{
for option in ['latex_prefix',...]:
if option in kwds:
args = True
self._print_options[option] = kwds[option]
}}}
- The documentation of set_print_options duplicates that of the
constructor. Could one of them just refer to the other? ``for the options
... see ...``. Actually, maybe the constructor should call
set_print_options?
- Could we find something better than _repr_asterix? That is that would
refer more explicitly to scalar multiplication? In MuPAD it was timesDot,
but it's not great either.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9370#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 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.