Re: [sage-combinat-devel] comments/questions on poset code

2012-02-25 Thread Florent Hivert
Hi Anne, On Fri, Feb 24, 2012 at 07:35:56PM -0800, Anne Schilling wrote: > Thanks! At the end of day, I had to modify the method _element_constructor_ > and now > everything seems to work. > > By the way, how do I know which methods have to be implemented? I looked at > > sage: from sage.

[sage-combinat-devel] IntegerRange and IntegerVectors

2012-02-25 Thread Vincent Delecroix
Hello, Sorry, me again! I am refactoring the code of lyndon_words to fit the new word implementation. I do not have a problem except for int/Integer incompatibilities. More precisely, I do not understand {{{ sage: Integer(1) in IntegerRange(0,4) True sage: int(1) in IntegerRange(0,4) False }}} be

[sage-combinat-devel] facade and coercion

2012-02-25 Thread Vincent Delecroix
Hi, What do you think about {{{ sage: ZZ.has_coerce_map_from(NN) False }}} Despite of the fact that {{{ sage: NN.facade_for() (Integer Ring,) }}} Cheers, Vincent -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To post to this group, sen

Re: [sage-combinat-devel] cardinality of infinite enumerated set

2012-02-25 Thread Vincent Delecroix
2012/2/23, Nicolas M. Thiery : > On Wed, Feb 22, 2012 at 03:12:39PM +, Vincent Delecroix wrote: >> Actually the methods are removed in >> >> trac_10963-more_functorial_constructions-nt.patch >> >> But then, I get a problem when I build a parent which is an infinite >> enumerated set as it does

Re: [sage-combinat-devel] comments/questions on poset code

2012-02-25 Thread Nicolas M. Thiery
On Fri, Feb 24, 2012 at 07:35:56PM -0800, Anne Schilling wrote: > Thanks! At the end of day, I had to modify the method _element_constructor_ > and now > everything seems to work. Cool. > By the way, how do I know which methods have to be implemented? I looked at > > sage: from sage.structure.l