Am Montag, 15. Juni 2015 12:05:51 UTC+2 schrieb Simon King: > > Hi, > > On 2015-06-14, David Roe <[email protected] <javascript:>> 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. >
I am probably clueless, but I thought that David's explanation was plausible: the attribute _codomain of Map is declared to be of type Parent (in map.pxd), so if C is not of type Parent, we are calling for trouble. Martin -- 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.
