A hashable immutable dictionary
Project description
HashableDict
A hashable immutable dictionary for Python. It lets you store dictionaries in sets or as keys to other dictionaries.
Usage
from HashableDict import HashDict
alive_list = [("Ada Lovelace", False),
("Douglas Adams", False),
("Sylvia Plath", False),
("Alan Turing", False),
("you and your dreams", True)]
alive_dict = HashDict(alive_list)
if alive_dict["you and your dreams"]:
print("The dream is alive!")
dict_within_dict = {alive_dict: None}
print(dict_within_dict)
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
HashableDict-0.1.2.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for HashableDict-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c7f85354ba374f1f5490bed7bbd89f10e0f7f9f616b317d2a104f4a37771625 |
|
MD5 | 80c4ba2808f2c7c036c586a2780ca820 |
|
BLAKE2b-256 | 525a50e052e4828f68ef2039d5356ecd4c0434da90700817c351f788f0540d8d |