A dict subclass which remembers insertion order
Project description
A dictionary class remembering insertion order.
Order (i.e. the sequence) of insertions is remembered (internally stored in a hidden list attribute) and replayed when iterating. A StableDict does NOT sort or organize the keys in any other way.
Implemented as a subclass of the builtin dict type. Very compact implementation (less than 150 lines of code). Comes with a large testsuite derived from Python’s test_dict.py in a separate test module.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
StableDict-0.1.1.zip
(9.7 kB
view hashes)
Built Distributions
StableDict-0.1.1-py2.5.egg
(18.6 kB
view hashes)
StableDict-0.1.1-py2.4.egg
(18.7 kB
view hashes)