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.1.0.tar.gz (3.2 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for weirdict-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c9efde4c117a212189d5ff60e439f033693dfdc5def66634dd0de5af607dab06
MD5 4a4dafea505fa975de3603431178930b
BLAKE2b-256 01eaa0b0dc5f51de34332b5b7baa43fd9d9762f26ded314f0b121c5328587068

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