Re: [sage-devel] category subclassing problem

2011-05-22 Thread Nicolas M. Thiery
On Sun, May 22, 2011 at 11:37:17AM +0200, Christian Nassau wrote: > Thanks a lot for these hints! I need to implement a category of > multi-graded modules/algebras over a Hopf algebra (the Steenrod > algebra, specifically), so I thought subclassing AlgebrasWithBasis > would be a good idea... I've n

Re: [sage-devel] category subclassing problem

2011-05-22 Thread Christian Nassau
Hi Nicolas, Thanks a lot for these hints! I need to implement a category of multi-graded modules/algebras over a Hopf algebra (the Steenrod algebra, specifically), so I thought subclassing AlgebrasWithBasis would be a good idea... I've now followed your example instead, and it all seems to wo

Re: [sage-devel] category subclassing problem

2011-05-21 Thread Nicolas M. Thiery
Hi Christian, On Fri, May 20, 2011 at 10:10:37AM +0200, Christian Nassau wrote: > I would like to create a new category that's derived from > AlgebrasWithBasis, but I get an infinite recursion when I ask for the > CartesianProducts: > > Here's a simple example: > >class MyAlgebrasWit

[sage-devel] category subclassing problem

2011-05-20 Thread Christian Nassau
I would like to create a new category that's derived from AlgebrasWithBasis, but I get an infinite recursion when I ask for the CartesianProducts: Here's a simple example: class MyAlgebrasWithBasis(AlgebrasWithBasis): def __init__(self,R): AlgebrasWithBasis.__init__(self,R) Now