On 2/15/12 2:38 PM, Anne Schilling wrote:
> Hi Florent,
> 
> Thanks for your answer.
> 
>>> I pushed the first framework of the code (some methods are still missing),
>>> but I get some doc-test failures regarding categories which I am not sure 
>>> how to fix.
>>> I think the problem is that the elements LinearExtensionsOfPoset are not in 
>>> its parent,
>>> but I am not sure how to fix this.
>>
>> You have to implement a __contains__ method in LinearExtensionsOfPoset, which
>> is used to answer the question
>>    x in LinearExtensionsOfPoset(...)
> 
> Why? When I programmed core.py in sage/combinat we did not have to implement
> __contains__. And the code for LinearExtensionsOfPoset is very similar in 
> structure
> to it.

Perhaps I need

    __metaclass__ = ClasscallMetaclass

    @staticmethod
    def __classcall_private__(cls, p, order = None):

?

Cheers,

Anne

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to