Hello, Here is a question about conventions for enumerated sets:
In sage.sets.finite_enumerated_sets unrank raise an "IndexError: tuple index out of range" if the index is out or a "TypeError: tuple indices must be integers, not str" if the argument is not coercable into an integer. While, the implementation ._unrank_from_list from the category raise a "ValueError: the value must be between %d and %d inclusive". I think we should specify a convention, at least for the error. Which one ? To fit with Python, the IndexError/TypeError seems well adapted. Cheers, Vincent -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To post to this group, send email to sage-combinat-devel@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.