New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the print of predefined words to the default behavior #7405
Comments
This comment has been minimized.
This comment has been minimized.
comment:3
The patch looks good and all tests pass. I'm ready to give a positive review. However I'm not a word expert so that I'd like someone who is to confirm that the change of printing is really the wanted behavior. Franco: once you agree with that please put a positive review on that patch. I will shorten a bit more the combinat queue... Cheers, Florent |
Reviewer: Florent Hivert |
Author: Sébastien Labbé |
comment:4
Thanks Florent for the review. I also would like Franco to agree with the print changes before any inclusion in sage since he wrote some of those rename of objects. Sébastien |
comment:5
I strongly agree with the changes. I think this way is much better. |
comment:6
Opps, I forgot to change the summary. |
Merged: sage-4.3.alpha1 |
This ticket concern 4 relatively small things.
(1) Change the print of predefined words to the default behavior.
(2) Correct a bug of
__mul__
ofWordMorphism.
(3) Adds the Fibonacci word defined from function.
(4) Adds documentation and doctest to a recently added function called
_element_classes
inword.py
.See below for more explanations.
(1) The
rename
function is used a lot for predefined words :But I more and more dislike this behavior made for the user since (1) it repeats the information already given by the user and (2) the first thing that the user do with the word is to look the prefix of the word (well, that's what I always do and that's what is done everywhere in the doctests).
To print a prefix, one needs to crete it (which is not always necessary for the user) :
I would simply like the following to work :
which is the default behavior anyway :
(2) The codomain of the product of
WordMorphism
is not correct :(3) See the patch.
(4) See the patch.
CC: @saliola
Component: combinatorics
Keywords: words
Author: Sébastien Labbé
Reviewer: Florent Hivert
Merged: sage-4.3.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/7405
The text was updated successfully, but these errors were encountered: