I think I already understood this distinction between type and parent. What 
was not clear (and still is not, but I have homework to do about this 
before making new noise on the list...) is how this translates in terms of 
(Python) programming.

Provisorily, I conclude :

   - type : look for something looking like a C type
   - parent : look for a class

Thanks again...

Emmanuel Charpentier

Le lundi 17 octobre 2016 15:16:04 UTC+2, Jeroen Demeyer a écrit :
> On 2016-10-17 15:10, Emmanuel Charpentier wrote: 
> > Thank you Vincent. this is much clearer. 
> > 
> > It seems that I have some things left to understand about the Sage class 
> > and types hierarchies. 
> There is a difference between a type and a parent. 
> A parent is a mathematical object. It is the mathematical set that your 
> object belongs to. 
> A type is a computer-science object. It defines the implementation of 
> your object and the methods that it has. 
> Now, for CDF it turns out that there is a 1-to-1 correspondence between 
> type and parent. But in most cases, this is not true. For example, 
> elements of GF(2^2) and GF(17^3) have the same type but not the same 
> parent. 

You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to