dicti is a dictionary with case-insensitive keys.
It works like the normal dict except that key matching is case-insensitive.
Instantiate like you would instantiate a normal dict; for example, these work.
dict(foo = ‘bar’, answer = 42) dicti(foo = ‘bar’, answer = 42)
dict({‘foo’: ‘bar’, ‘answer’: 42}) dicti({‘foo’: ‘bar’, ‘answer’: 42})
Methods that accept keys and have side-effects record the original case, just as a normal dictionary does.
di = dicti() di[‘cAsE’] = 1 di.keys() == [‘cAsE’] di[‘Case’] = 1 di.keys() == [‘Case’] di[‘caSE’] == 1
Methods that accept keys do the same thing regardless of what case you pass the key in.
Keys are still stored in their original case, however; the original keys are presented when you request them with methods like dicti.keys.
Release files for dicti 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dicti-0.0.1.tar.gz | 15.6 kB | Details |
Release files / dicti-0.0.1.tar.gz
| Download URL | dicti-0.0.1.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9e821019d293586cab522d7cf0d1e85c11e6f0e4c5085e0890241f9b96b7b28
|
|
BLAKE2b-256 checksum How to use checksums |
7d0144ccb0bd4a711c12576771b478f5dada512906ffa58f93e22d5191259d3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |