On Mon, Aug 18, 2014 at 11:03:46PM -0700, Travis Scrimshaw wrote: > IMO we should swap the order of the pairs. It would make it consistent > with other parts of Sage too: > ...
I have been dreaming of this change for quite some time. I don't have an opinion on whether it's acceptable to change this so late though. Another difficulty is that for vector spaces, __iter__ runs through the coefficients: sage: x = (QQ^4).an_element() sage: x (1, 0, 0, 0) sage: list(x) [1, 0, 0, 0] So maybe the right way would be to instead implement iteritems for all elements of ModulesWithBasis. The syntax is not so nice, but it's more explicit. Cheers, Nicolas -- Nicolas M. ThiƩry "Isil" <nthi...@users.sf.net> http://Nicolas.Thiery.name/ -- 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.