Hashable dictionaries and lists, so that they can be used as keys in a dictionary
Project description
This library enables dictionaries and lists to be used as keys inside a dictionary. In other words, it makes them hashable. Instructions for use are provided at home page of project.
While mutable objects (lists, dictionaries) should not be made hashable in general, the programmer is trusted not to abuse this power. An extension option to explicitly make the resulting hashable object immutable is provided at the home page of this project for convenience.
There are certain use cases - e.g. when trying to pass seemingly identical keys to NetworkX as different nodes, or when you want to query an object’s properties in place while making a mapping instead of calling a complicated identification function - where these may be useful and reduce boilerplate code.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for hashable_collections-1.0-cp34-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b268cd04b3b34f1fc5dfa962d97c9bc269dd11234e6c28ddbb1061f97d03594c |
|
MD5 | 081d36078ada5aac0bcbe9bd98edf9e9 |
|
BLAKE2b-256 | c5c4285ae13a552b6b3343581b74ef9d337ef9f412558866937975a74b9540d8 |