Skip to main content

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 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.

Obsoleted since Python 2.7 by collections.OrderedDict (PEP 372).

Project details


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.2.zip (11.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

StableDict-0.2-py2.6.egg (19.1 kB view details)

Uploaded Egg

StableDict-0.2-py2.5.egg (19.2 kB view details)

Uploaded Egg

StableDict-0.2-py2.4.egg (19.4 kB view details)

Uploaded Egg

File details

Details for the file StableDict-0.2.zip.

File metadata

  • Download URL: StableDict-0.2.zip
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for StableDict-0.2.zip
Algorithm Hash digest
SHA256 cb0c2fa8204f123cbaa6e3b3fd916f95d33c3f89ecee95f4cd3b9d18d6c3e891
MD5 d6eaa3d87fd1096f75e434822721cfae
BLAKE2b-256 436753207d572593437826204cd78c684b5dba59a4e7339fa14e16f385d25ed6

See more details on using hashes here.

File details

Details for the file StableDict-0.2-py2.6.egg.

File metadata

  • Download URL: StableDict-0.2-py2.6.egg
  • Upload date:
  • Size: 19.1 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for StableDict-0.2-py2.6.egg
Algorithm Hash digest
SHA256 368b04426db0e65c269b5de3cb54b02a97ffc870c83968ddd9c88441c4b97677
MD5 97f18f347e7ede83a7ad87a477745d08
BLAKE2b-256 df21409393cd58642491ad4bee47fb4a9587c241bf51ff856ade5fa4aa661671

See more details on using hashes here.

File details

Details for the file StableDict-0.2-py2.5.egg.

File metadata

  • Download URL: StableDict-0.2-py2.5.egg
  • Upload date:
  • Size: 19.2 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for StableDict-0.2-py2.5.egg
Algorithm Hash digest
SHA256 a406f1113c2da394f4c91ed443ceefdc2e52d5514f8dffcf5821d295082dcb42
MD5 1643c665ee92bfd24465f520a3177845
BLAKE2b-256 66c82096e320591347baac5550295c9f2c71c015edc56a0ee034e9d87f7b5f93

See more details on using hashes here.

File details

Details for the file StableDict-0.2-py2.4.egg.

File metadata

  • Download URL: StableDict-0.2-py2.4.egg
  • Upload date:
  • Size: 19.4 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for StableDict-0.2-py2.4.egg
Algorithm Hash digest
SHA256 96fe3a893ccb4a6e46756fbaa7b7bc22e809290cec15c9061bad5e9244e6a3fa
MD5 24ec45d2cc4d6562a8e447d294278740
BLAKE2b-256 6df3e8ac7df1f8f20072c95c50d3b26e49829e058fe176e07ee614132a16645c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page