On 31/12/2017 18:02, Travis Scrimshaw wrote:


Working on #24432, I am faced with the following problem. We have a
NumberFields category and a number field is necessarily infinite. Hence
it would be natural for NumberFields() to be a subcategory of
Sets().Infinite(). What is the proper way to do it?

I tried to solve this by doing the naive

class NumberFields:
      def super_categories(self):
-        return [Fields()]
+        return [Fields().Infinite()]

That is the correct way to do it as far as I know.
But it does not work at all (namely it is not possible to call methods
from ParentMethod).

  What exactly do you mean by this? The methods from Sets().Infinite() are
not called?

I meant

    https://trac.sagemath.org/ticket/23418#comment:5

that was due to a bug in the category code fixed by

    https://trac.sagemath.org/ticket/23418#comment:10

Vincent

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to