Re: [sage-combinat-devel] lazy enumerated set

2012-02-18 Thread Vincent Delecroix
Finally I implemented two decorators : one for functions and one for methods and everything seems to work. The last version is in sage-combinat queue. I have to write down documentation but the ticket should be finalized today. If you have any remark on naming convention, architecture, possible i

Re: [sage-combinat-devel] lazy enumerated set

2012-02-17 Thread Vincent Delecroix
>> >> I get trouble with TestSuite which only works when elements of the set >> have parents. In particular it does not work in the following case >> {{{ >> sage: from sage.sets.set_from_iterator import EnumeratedSetFromIterator >> sage: E = EnumeratedSetFromIterator(graphs, >> category=InfiniteEnu

Re: [sage-combinat-devel] lazy enumerated set

2012-02-16 Thread Florent Hivert
> > We discussed this with Vincent over the phone: I pointed him to the > > combinatorial_class_from_iterator decorator implemented in > > class_from_iterator.patch; he volunteered to refactor it as > > enumerated_set_from_iterator. Note that, as a decorator over an > > existing function which prod

Re: [sage-combinat-devel] lazy enumerated set

2012-02-16 Thread Nicolas M. Thiery
On Thu, Feb 16, 2012 at 10:04:16AM +, Vincent Delecroix wrote: > Trying to put my patch a little bit higher in the queue, I noticed the > presence of the patch class_from_iterator.patch (which does not > commute with mine as I basically deprecate what it did). There is no > author, if there is

Re: [sage-combinat-devel] lazy enumerated set

2012-02-16 Thread Vincent Delecroix
2012/2/16, Vincent Delecroix <20100.delecr...@gmail.com>: > 2012/2/11, Nicolas M. Thiery : >> On Sat, Feb 11, 2012 at 12:05:49PM +0100, Florent Hivert wrote: >>> > Together with the language-team, we decided to implement a >>> > LazyEnumeratedSet (see my patch in the queue) which takes as input an

Re: [sage-combinat-devel] lazy enumerated set

2012-02-16 Thread Vincent Delecroix
2012/2/11, Nicolas M. Thiery : > On Sat, Feb 11, 2012 at 12:05:49PM +0100, Florent Hivert wrote: >> > Together with the language-team, we decided to implement a >> > LazyEnumeratedSet (see my patch in the queue) which takes as input an >> > iterable (finite or infinite) and mimic a set which contai

Re: [sage-combinat-devel] lazy enumerated set

2012-02-11 Thread Nicolas M. Thiery
On Sat, Feb 11, 2012 at 12:05:49PM +0100, Florent Hivert wrote: > > Together with the language-team, we decided to implement a > > LazyEnumeratedSet (see my patch in the queue) which takes as input an > > iterable (finite or infinite) and mimic a set which contains the > > element of the iterable.

Re: [sage-combinat-devel] lazy enumerated set

2012-02-11 Thread Florent Hivert
Hi, > Together with the language-team, we decided to implement a > LazyEnumeratedSet (see my patch in the queue) which takes as input an > iterable (finite or infinite) and mimic a set which contains the > element of the iterable. It is very useful when we do not want to > implement a specif

[sage-combinat-devel] lazy enumerated set

2012-02-10 Thread Vincent Delecroix
Hello, Together with the language-team, we decided to implement a LazyEnumeratedSet (see my patch in the queue) which takes as input an iterable (finite or infinite) and mimic a set which contains the element of the iterable. It is very useful when we do not want to implement a specific class... W