On Thursday, July 31, 2014 7:43:27 AM UTC-7, Daniel Krenn wrote:
>
> Am 2014-07-31 um 15:55 schrieb Volker Braun:
> > On Thursday, July 31, 2014 9:16:50 AM UTC-4, Daniel Krenn wrote:
> >
> > Does this mean it is guaranteed that in doctests dicts are always
> shown
> > with their keys sorted?
> >
> >
> > AFAIK: Yes, but only the top-level dict (no guarantees for nested
> > datastructures)
>
And it's only a best-effort attempt:
sage: ({200:2,30:4,'ddd':1,complex(1,2):2,complex(1,1):1,'aaaa':2,'b':3})
{'b': 3, (1+1j): 1, (1+2j): 2, 200: 2, 'aaaa': 2, 30: 4, 'ddd': 1}
not everything in python *can* be sorted.
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.