[Tutor] list of dicts <-> dict of lists?

Sander Sweers sander.sweers at gmail.com
Fri May 28 11:32:59 CEST 2010


2010/5/28 spir ☣ <denis.spir at gmail.com>:
> his is a different feature from preserving *input* order of of keys, or of key:value pairs.

In Python 2.7 and 3.1 [1] we now have the OrderedDict which does
preserve input order.

Greets
Sander

[1] http://www.python.org/dev/peps/pep-0372/


More information about the Tutor mailing list