2. We currently have a nested series of classes for tableaux, one branch of 
which is

> Tableaux > SemistandardTableaux > StandardTableaux > StandardTableaux_n > 
> StandardTableaux_partition
>
> My question is, does there exist an efficient way of making use of the 
> class hierarchy to construct new elements whenever there is a nested 
> structure of classes like this? By this I mean, that when new elements are 
> created the parent for the new element is either the same parent or the 
> minimal higher parent for which the new element makes sense. As the generic 
> way of creating new elements this is not usually what you want, but in many 
> situations it is. I will explain what I mean in one of the examples I care 
> about.
>
> OK, this is was easy: I realised that returning

self.parent().Element( new_object )

does exactly what I want.

Andrew
 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sage-combinat-devel/-/TB8t_1fHe2cJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to