On Fri, May 16, 2014 at 08:04:11AM -0700, Bruce wrote:
>    On Friday, 16 May 2014 14:54:32 UTC+1, Viviane Pons wrote:
> 
>      I think the Foo class must also inherit from the Element class.
> 
>    If I change the first line to
> 
>    class Foo(Element, UniqueRepresentation):
> 
>    then when I create an instance and look at it I get
> 
>    Generic element of a structure

That's fine: that's what the default _repr_ method returns for
Element's. You can implement your own.

By the way: usually an element class need not inherit from
UniqueRepresentation (but there are use cases).

Cheers,
                                Nicolas
--
Nicolas M. ThiƩry "Isil" <nthi...@users.sf.net>
http://Nicolas.Thiery.name/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-combinat-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-combinat-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to