On Fri, Mar 14, 2014 at 10:31 AM, Jason King <[email protected]> wrote:
> yup, associative arrays , (in awk), dicts in python , and the perl version > of them are all like this, you can't specify the order in which the > contents are output. > > There is an OrderedDict (http://docs.python.org/2/ > library/collections.html#collections.OrderedDict) > if insertion order is important to you. And, to add to Jason's Rosetta Stone of mappings, I believe Ruby hashes (which is the name dicts have in that faraway land) are always ordered, at least from 1.9 onwards. J
_______________________________________________ melbourne-pug mailing list [email protected] https://mail.python.org/mailman/listinfo/melbourne-pug
