Re: [sage-support] Element vs UniqueRepresentation

2016-10-10 Thread Jeroen Demeyer
Try this: sage: from sage.misc.inherit_comparison import InheritComparisonClasscallMetaclass sage: class A(Element, UniqueRepresentation): : __metaclass__ = InheritComparisonClasscallMetaclass -- You received this message because you are subscribed to the Google Groups "sage-support"

[sage-support] Element vs UniqueRepresentation

2016-10-07 Thread John H Palmieri
Can I define a class which inherits from both Element and UniqueRepresentation? It doesn't seem like it: sage: from sage.structure.element import Element sage: class A(Element, UniqueRepresentation): pass --- TypeError