-
-
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
cmp function for words is broken #8232
Comments
comment:1
I just applied a patch which does the following things.
NOTE : The difference between w and z above is that the parent of w is the alphabet of all python objects which uses the cmp of python to compare the letters whereas z compares its letters relatively to the order of the letters defined by its parent (here 0 < 1 but one could also say 1 < 0) which is slower.
|
Depends on #8186 |
comment:2
Attachment: trac_8232_word_cmp_bug-sl.patch.gz |
comment:3
Hi, Sébastien ! I finally got some time to look at your patch and everything seems fine, code makes sense, documentation builds without warning and the bugs mentionned in the description are fixed. The only observation I would make is that it seems costly to use all those |
comment:4
Never mind my last observation, it seems more complicated to use Anyway, the goal of the patch is reached, the documentation builds correctly, all tests pass, the bugs are fixed. Positive review ! |
Reviewer: Alexandre Blondin Massé |
Author: Sébastien Labbé |
Merged: sage-4.3.3.alpha1 |
As discussed on sage-combinat-devel, cmp is broken for words.
it causes problem else where :
CC: @sagetrac-abmasse
Component: combinatorics
Author: Sébastien Labbé
Reviewer: Alexandre Blondin Massé
Merged: sage-4.3.3.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/8232
The text was updated successfully, but these errors were encountered: