Hi Erik,

On 2018-08-10, Erik Bray <erik.m.b...@gmail.com> wrote:
> I've never liked that there are constructors in Sage that are
> functions but look like class names.  I'd rather NumberField itself
> were a class, with NumberField.__new__ acting as the factory.  I
> suspect there is a reason it wasn't done that way but I was never
> clear on that. 

I can think of two reasons:
1) Perhaps NumberField predates the development of ClasscallMetaclass?
2) Perhaps NumbarField(data) returns instances of distinct classes
depending on the data?

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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to