On 11/3/12 11:01 AM, Volker Braun wrote:
Isn't this the real issue:
def is_VectorSpaceMorphism(x):
return isinstance(x, VectorSpaceMorphism)
With the category stuff the correct check is whether VectorSpaceMorphism
in x.__class__.__mro__. Is there a better way to express this? Whats the
..._with_category class if I want an isinstance() check?
That's how analogous is_* commands are defined, I think. Are you saying
that all of them are implemented wrongly?
I think isinstance tests for superclasses too. Is that what you are
asking? Notice:
sage: h = (RR^3).hom(matrix(RR, 3, [1..9]))
sage: sage.modules.vector_space_homspace.is_VectorSpaceHomspace(h.parent())
True
Thanks,
Jason
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.