We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a25677 commit e87164bCopy full SHA for e87164b
plasma/utils/hashing.py
@@ -2,6 +2,8 @@
2
import dill
3
import hashlib
4
import copy
5
+# import pickle
6
+# dill.settings['protocol'] = 3
7
8
9
def general_object_hash(o):
@@ -65,7 +67,7 @@ def myhash_obj(x):
65
67
Serialize a generic Python object using dill, decode the bytes obj,
66
68
then pass the Unicode string to the particular hash function.
69
'''
- return myhash(dill.dumps(x).decode('unicode_escape'))
70
+ return myhash(dill.dumps(x, protocol=3).decode('unicode_escape'))
71
72
73
def myhash_signals(signals):
0 commit comments