Arrgh.

On 2013-07-28, Simon King <simon.k...@uni-jena.de> wrote:
> 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?

It turns out that a lot of stuff in sage.combinat breaks. Apparently
some people really want that if C is a class then C(*args,**kwds) is not
an instance of this class.

My opinion is thus: Changing it would be a can of worms and hence not
worth doing.

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