News for hackers. Stuff that matters.
Re:Python dicts are now ordered by gerikson on Saturday February 08, 2020 @05:29PM (#22278979)
The Perl example sounds like someone incorrectly assuming that the output from `keys` be ordered, when it's explicitely not:

> Hash entries are returned in an apparently random order. The actual random order is specific to a given hash; the exact same series of operations on two hashes may result in a different order for each hash.

Applying a `sort` to the output of `keys` is second nature to me - I'm always aware that hash entries are unordered in Perl.

There are no comments on this comment yet.