It looks to me like ClonableArray stores its object as a list
(I looked at ClonableArray.__init__)
while CombinatorialClass can keep the object as a Set,
but I didn't trace down the code very far.

If you convert a SetPartition to a list first then you
can map to sage Set.

sage: A = SetPartition([[1,2],[3,4]])
sage: B = SetPartition([[1],[2],[3,4]])
sage: Set(list(A)).intersection(Set(list(B)))

{{3, 4}}

sage: set(A).intersection(set(B))

set([{3, 4}])

-Mike

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

Reply via email to