Hi, On 2015-06-14, David Roe <[email protected]> wrote: >> It fails doing the assignment self._codomain = C in Map.__init__, which is >> something I do not understand. >> > > The reason it fails is that _codomain is cdef Parent in map.pxd. You could > change this to CategoryObject, though there may be some other consequences.
If I understand correctly, Map.__init__ fails, even though Map of course has the cdef attribute _codomain and thus Map.__init__ should of course be able to write to the attribute. And I have no idea why that could happen. But note that at some point I wanted a Python class to inherit from both Map and another cdef class. Python did not complain about the two base classes, but eventually a cdef attribute of one base class was confused with a cdef attribute of the other base class. It was acknowledged that that was a bug in Cython. Perhaps here we have something similar? Best regards, Simon -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
