-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
sage.combinat.subword.smallest_positions modifying its input (use #5200) #5534
Comments
comment:1
Fixed (see the attached patch): Now:
Note the patch only applies on top of #5200 Author : Florent Hivert |
This comment has been minimized.
This comment has been minimized.
comment:4
This patch causes doctest failures in
For example"
This is with #5200 merged, so is there another dependency? Cheers, Michael |
Attachment: subwords_fix-5534-submitted.patch.gz |
comment:5
Oups !!! It looks like Nicolas last review requirement was simply syntactically wrong. He required to write The re-sumbmitted patch should work. Cheers, Florent |
comment:7
Merged in Sage 3.4.1.rc0. Cheers, Michael |
I came across this function in Sage-Combinat,
sage.combinat.subword.smallest_positions(word, subword, pos=0)
Running this function not only returns the positions in "word" where
"subword" occurs, but it modifies "subword" to be this sequence of
positions. Is there a reason for this? It seems to me that it should
leave "subword" unchanged, but maybe I'm not thinking of something.
Thanks,
Steve
CC: @sagetrac-sage-combinat
Component: combinatorics
Issue created by migration from https://trac.sagemath.org/ticket/5534
The text was updated successfully, but these errors were encountered: