Hey Andrew,
>
>  
> Unfortunately, now it seems that I can't access the elements of the tuple 
> directly:
>
> sage: tabs = DisjointUnionEnumeratedSets(Family(Partitions(3), lambda mu: 
> cartesian_product([mu.standard_tableaux(),mu.standard_tableaux()])), 
> facade=False)
> sage: s=StandardTableau([[1,2],[3]])
> sage: ss=tabs( (s,s) )
> sage: ss[0]
> ---------------------------------------------------------------------------
> TypeError                                 Traceback (most recent call last
> )
> <ipython-input-16-f4126aa9793b> in <module>()
> ----> 1 ss[Integer(0)]
>
> TypeError: 'sage.structure.element_wrapper.ElementWrapper' object has no 
> attribute '__getitem__'
> > <ipython-input-16-f4126aa9793b>(1)<module>()
> ----> 1 ss[Integer(0)]
>
> On the other hand, the following works:
>
>
> sage: ss.value[0], ss.value[1]
> ([[1, 2], [3]], [[1, 2], [3]])
>
>
> Yea, it comes from the fact that it is only a simple wrapped element and 
doesn't do anything beyond forwarding the repr/latex/ascii-art outputs. I 
go back and forth on whether or not to pass along some (all?) extra 
methods. Probably the easiest thing to work with is the facade with the 
ticket (at least if you don't care if the element belongs to this specific 
parent).

Thanks for looking at the ticket too.

Best,
Travis


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

Reply via email to