Re: [sage-devel] Coercion, __mul__, and infinite recursion

2011-09-05 Thread Volker Braun
But the parents I'm trying to implement (polyhedra over a base ring with fixed ambient dimension) aren't an algebra. In my case, the category is class PolyhedralSets(Category_over_base_ring): def __init__(self, R): Category_over_base_ring.__init__(self, R, 'Polyhedra') def

Re: [sage-devel] Coercion, __mul__, and infinite recursion

2011-09-05 Thread Florent Hivert
Hi Volker, On Sun, Sep 04, 2011 at 01:10:56PM -0700, Volker Braun wrote: > I'm trying to implement actions for a custom class and I'm tripping over > this apparently old bug http://trac.sagemath.org/sage_trac/ticket/8928. > Example from the ticket: > > sage: class MyRing2(CombinatorialFre

[sage-devel] Coercion, __mul__, and infinite recursion

2011-09-04 Thread Volker Braun
I'm trying to implement actions for a custom class and I'm tripping over this apparently old bug http://trac.sagemath.org/sage_trac/ticket/8928. Example from the ticket: sage: class MyRing2(CombinatorialFreeModule): ... def __init__(self): ... R = QQ ... category = (Mod