You can either inherit from sage.rings.commutative_ring.CommutativeRing, or modify FreeModule to work better with the category framework. The first is probably the easier option. David
On Sat, Oct 16, 2010 at 16:27, Christian Stump <christian.st...@gmail.com>wrote: > > What are you inheriting from? FreeModule is checking to see if you're > > inheriting from sage.rings.commutative_ring.CommutativeRing. This was > > written long before categories became available. > > No I don't - should I? Or is there another way to get around this? > > At the moment, I inherit only from Parent, and set category to be > Fields(). > > Christian > > -- > 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<sage-devel%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/sage-devel > URL: http://www.sagemath.org > -- 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