On Fri, Nov 09, 2012 at 09:41:01AM -0800, Volker Braun wrote:
> Thanks, looks good.
> 
> Maybe one could factor out the Enumerated (=canonical enumeration) part? Or 
> is every parent with __iter__ supposed to be in EnumeratedSets and, 
> therefore, have a rank() methods etc? The element order is often just 
> arbitrary...

I don't thik every parent with iter sould be in enumerated. Enumerated means
that there is some cononical enumeration and that as a consequence, list,
__iter__, __getitem__ have to return their result with a consistent
ordering. Nothing is currently implemented, but I had in mind that morphism of
enumerated sets should preserve the canonical enumeration...

> Also, I dislike .list() returning a Python list. We should always return 
> tuples, and if even the Sage framework breaks that rule then its very 
> confusing for new users.

You are not alone: see #11125

> An argument could be made that list can be understood as "Python list" and
> not as the English verb for "series of records". Maybe call it enumerate()
> with an alias list()?

I like that but I would like for more vote before setting it as a rule.

Cheers,

Florent

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.


Reply via email to