-
-
Notifications
You must be signed in to change notification settings - Fork 672
Closed
Description
As discussed on sage-combinat-devel, cmp is broken for words.
Amusant: this boils down to:
sage: W = Words(['a','b','c'])
sage: W('a') == W([])
True
sage: W([]) == W('a')
False
it causes problem else where :
sage: A = AlgebrasWithBasis(QQ).example(); A
An example of an algebra with basis: the free algebra on the
generators ('a', 'b', 'c') over Rational Field
sage: [a,b,c] = A.algebra_generators()
sage: a.is_one()
True
sage: b.is_one()
True
sage: c.is_one()
True
sage: A.one().is_one()
True
sage: (a+b).is_one()
False
sage: (a+A.one()).is_one()
False
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