On Jul 28, 2014 8:47 AM, "Volker Braun" <[email protected]> wrote:
>
> On Monday, July 28, 2014 11:42:05 AM UTC-4, William wrote:
>>
>> That said, there is a ready-made solution [1] for exactly the original
>> question,
>
>
> The TESTS: section does appear in the reference manual, fyi. Its just a
way to separate it off from EXAMPLES:
>
That's annoying. The entire point of the tests section (which I introduced
in the first place) was to not appear in the ref manual, interactive docs,
etc. I guess I never got around to implementing that or somebody changed
it.
> Specifically for dictionaries we also have the displayhook sorting by key:
>
> sage: d = {'a':23, 'b':34, 'au':56, 'bbf':234, 'aaa':234}
> sage: str(d) # dict uses internal order
> "{'a': 23, 'bbf': 234, 'aaa': 234, 'b': 34, 'au': 56}"
> sage: d # displayhook sorts alphabetically
> {'a': 23, 'aaa': 234, 'au': 56, 'b': 34, 'bbf': 234}
>
> --
> 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.
--
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.