>
> This is one very special case where the Parent/Element relation is 
> broken. First of all FiniteEnumeratedSet is not the parent of its 
> elements (it is a facade): 
>

Well, then I am asking whether it is a good idea / should be allowed.

We already have a tool to store list of elements without changing them, and 
it is called a list. It is also much faster.

FiniteEnumeratedSet is aimed to not modify the input it gets. So if 
> you feed it with Python objects which are not elements it will not 
> complain and you have to go with that. With Stepan we implemented a 
> TotallyOrderedFiniteSet which has an option for having the behaviour 
> you expected 
>

I am not looking for a list that wraps its elements, I am writing code for 
the CartesianProduct category.

Are you telling me that the category code has to be written without making 
the assumption that the elements of a parent have a .parent() function ?

If so, don't we have a LOT of code to update ?

Nathann

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

Reply via email to