Re: [sage-combinat-devel] Empty word and comparisons

2010-02-16 Thread Sébastien Labbé
Le 15 février 2010 23:19, Nicolas M. Thiery nicolas.thi...@u-psud.fr a écrit :        Hi Sébastien, I just went through the patch. Great. Thanks! It sounds good! What about having a common super class for all the concrete word classes (list/tuple/str) which would contain all the shared

Re: [sage-combinat-devel] Empty word and comparisons

2010-02-16 Thread Nicolas M. Thiery
Bonjour Sébastien, On Tue, Feb 16, 2010 at 02:27:51PM +0100, Sébastien Labbé wrote: Good idea, one could put there the function length because its code is the exact same for all of those three classes. So, your idea is (like you explain below) that concatenation of finite word defined

Re: [sage-combinat-devel] Empty word and comparisons

2010-02-15 Thread Nicolas M. Thiery
Hi Sébastien, I just went through the patch. It sounds good! What about having a common super class for all the concrete word classes (list/tuple/str) which would contain all the shared logic about how finite words interact together? The two following design decisions will probably