skip to navigation
skip to content

StableDict 0.2

A dict subclass which remembers insertion order

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 built in dict type. Very compact implementation (less than 150 lines of code). Comes with a large test suite derived from Python's test_dict.py in a separate test module.

File Type Py Version Uploaded on Size # downloads
StableDict-0.2-py2.5.egg (md5) Python Egg 2.5 2007-08-28 12:13:05 18KB 401
StableDict-0.2.zip (md5) Source 2007-08-28 12:13:34 11KB 283
StableDict-0.2-py2.4.egg (md5) Python Egg 2.4 2007-08-28 12:13:21 18KB 387
StableDict-0.2-py2.6.egg (md5) Python Egg 2.6 2009-07-11 19:11:24.294257 18KB 71

Log in to rate this package.