On Thu, Jul 31, 2014 at 02:23:02PM -0700, Travis Scrimshaw wrote: > ... Just do ``sorted(d.items(), key=str)`` for doctests where the > order could change (which usually is for dicts of size larger > than 3).
An variant which I like is to use ``pprint`` sage: d = { 'b':1, 'a':3, 'c':5 } sage: from pprint import pprint sage: pprint(d) {'a': 3, 'b': 1, 'c': 5} 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.