Hashing
hashing ¶
Fast cryptographic hash of Python objects, with a special case for fast hashing of numpy arrays.
Pickler = pickle._Pickler module-attribute ¶
T = TypeVar('T') module-attribute ¶
P = ParamSpec('P') module-attribute ¶
Hashable ¶
Bases: Protocol
A class that can be hashed.
Wrapped ¶
hash(*obj, coerce_mmap=False) ¶
Quick calculation of a hash to identify uniquely Python objects containing numpy arrays.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj | The objects to hash | () | |
coerce_mmap | Make no difference between np.memmap and np.ndarray | False |