Hey Andrew, I want this functionality too. I tried adding: > > __metaclass__ = ClasscallMetaclass > > but this produces the error: > > TypeError: Error when calling the metaclass bases > metaclass conflict: the metaclass of a derived class must be a (non- > strict) subclass of the metaclasses of all its bases > > I found that using > __metaclass__ = InheritComparisonClasscallMetaclass > > works, although I am not yet sure if I need rich comparison. > > Anyway, apart from this minor quibble about meta classes it seems to be > working for now. > > Recent changes (IIRC thanks to Jeroen) have made it so that comparisons can use the coercion framework if they define a _cmp_, which is done in Element. Then, in order to have cython classes (e.g., the Clonable* classes) inherit this feature, a new metaclass was needed. See http://trac.sagemath.org/ticket/18329.
Best, Travis -- 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 https://groups.google.com/group/sage-combinat-devel. For more options, visit https://groups.google.com/d/optout.