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 this works: print AlgebrasWithBasis(GF(5)).CartesianProducts <bound method AlgebrasWithBasis.CartesianProducts of Category of algebras with basis over Finite Field of size 5> but this doesn't: print MyAlgebrasWithBasis(GF(5)).CartesianProducts RuntimeError: maximum recursion depth exceeded Curiously, it works for the DualObjects: print MyAlgebrasWithBasis(GF(5)).DualObjects <bound method MyAlgebrasWithBasis.DualObjects of Category of my algebras with basis over Finite Field of size 5> I think this is a problem with CovariantConstructionCategory.__classget__ but I have no idea how to fix this. (I'm using Sage 4.7.rc1 here.) Is there a workaround I could use? Cheers, Christian -- http://www.nullhomotopie.de -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org