On 2013-07-28, Simon King <simon.k...@uni-jena.de> wrote:
> Do we want such a behaviour? Or should ClasscallMetaclass.__call__ do
> some assertion that makes sure that it can only return instances of the
> class in question?

Slight problem: When we do Modules(QQ), then it returns
VectorSpaces(QQ). This is why a type checking in
ClasscallMetaclass.__call__ would currently crash at startup of Sage.

It might be possible to fix it by making VectorSpaces a sub-class of
Modules. But I don't know if it would be worth doing. Opinions?

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 sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to