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.2.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for HashableDict-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b8ad3fe15da8ede58ed16d583a8781961907b554ec03be2e4c5a75c282ca1af |
|
MD5 | 76028df03e6a96db931f30ac1880ccbc |
|
BLAKE2b-256 | 24b06c715004591a3ca3c9fff02404b94e554fd626c6190d75af7b5e256b07eb |