Helloooooooo !!! What happens if you add facade=True ? >
It works ! ;-) sage: p = [1,2,3,4,5] sage: P = Poset( (p, lambda x,y:x<y ) ) sage: map(type,P) [<class 'sage.combinat.posets.elements.FinitePoset_with_category.element_class'>, <class 'sage.combinat.posets.elements.FinitePoset_with_category.element_class'>, <class 'sage.combinat.posets.elements.FinitePoset_with_category.element_class'>, <class 'sage.combinat.posets.elements.FinitePoset_with_category.element_class'>, <class 'sage.combinat.posets.elements.FinitePoset_with_category.element_class'>] sage: P = Poset( (p, lambda x,y:x<y ) , facade = True) sage: map(type,P) [<type 'sage.rings.integer.Integer'>, <type 'sage.rings.integer.Integer'>, <type 'sage.rings.integer.Integer'>, <type 'sage.rings.integer.Integer'>, <type 'sage.rings.integer.Integer'>] I would personnally expect this to be the default behaviour, especially when the documentation of Poset says nothing about what the facade argument means nor that it could have any effect on such problems ^^;;; Thank you very much though, at least now my code works :-) Nathann -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To view this discussion on the web visit https://groups.google.com/d/msg/sage-combinat-devel/-/86fgyPFsW3cJ. 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.