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"
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