Hi Maarten, On 28 Aug., 05:40, Maarten Derickx <[email protected]> wrote: > def __init__(self, constant_field, names, category=CAT): > ParentWithGens.__init__(self, self, names=names, category = > category)
What class does the function field class inherit from? A function field is a field, thus, I suppose you started with a sub-class of sage.rings.ring.Field, right? At least this is what should be done, IMHO, unless there is a good reason to not do it. That makes me wonder why you do ParentWithGens.__init__(...) and not Field.__init__(...) or at least Ring.__init__. Did you try and it did not work? Then I suggest that you have a look at trac tickets #9944 and #9138, which aim at implementing the category and coercion framework for all rings (#9138 needs review). Best regards, Simon -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
