dictiDictionary with case-insensitive keys | |
Download |
dicti Ranking & Summary
Advertisement
- License:
- AGPL
- Price:
- FREE
- Publisher Name:
- Thomas Levine
- Publisher web site:
- https://github.com/tlevine/
dicti Tags
dicti Description
dicti is a dictionary software 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 = 1 di.keys() == di = 1 di.keys() == di == 1Methods 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.Product's homepage
dicti Related Software