Skip to main content

Doing weird things with dicts.

Project description

This package offers a base implementation as well as several examples of “normalized dicts”.

A normalized dict is a python dictionary subclass whose keys are normalized through a particular function prior to insertion/modification/deletion.

Examples

The example classes provided include:

  • A case-insensitive dict,

  • a dict whose keys are truncated to a given length,

  • a dict whose keys are computed modulo N, where N is a given int.

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

weirdict-0.2.1.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file weirdict-0.2.1.tar.gz.

File metadata

  • Download URL: weirdict-0.2.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for weirdict-0.2.1.tar.gz
Algorithm Hash digest
SHA256 051359e0c9036ae1c7ccd0f1a7ab9152ec99ffdb0cf1ca21e7c95c45928520dd
MD5 1f087f183a715c5c4cafe090d3a4ce8e
BLAKE2b-256 11f7a5c4b46871cc4e7b811c216f61ef4a3de20a24408021b6f910b9570189e9

See more details on using hashes here.

Supported by

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