Dicts and Sets that hash items based on identity instead of value
Project description
Introduction
This module implements dicts and sets that compare items based on identity rather than value. This allows them to store unhashable objects.
Usage example:
from identity_containers import IdentitySet
foo = []
bar = []
id_set = IdentitySet([foo])
print(foo in id_set) # True
print(bar in id_set) # False
The following classes exist:
IdentitySetIdentityDictIdentityDefaultDictIdentityWeakKeyDict
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file identity_containers-1.1.0.tar.gz.
File metadata
- Download URL: identity_containers-1.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e7c5aabfa4f46409e88bb0dd598a43d3ee8e268864cd7ae735f86b15043be62
|
|
| MD5 |
e538c5992745eb79a7c4a2b480b18b53
|
|
| BLAKE2b-256 |
dfd4a00dc75b7198b37a015f1c332bd7788db6b3f6555f64d22d4e12c54ad9ed
|
File details
Details for the file identity_containers-1.1.0-py3-none-any.whl.
File metadata
- Download URL: identity_containers-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9af2208e10224cf41be4d136e765fbb1b561d78f4f58b520743cedd31f45d4f0
|
|
| MD5 |
b611bf55822d95bac3d92f322d71a748
|
|
| BLAKE2b-256 |
88323cad0e57b58a35f6fb275a105fe8fd8c0b510d848bbf87c40b76a8ddee44
|