-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Environment:python 3.5.1
in python 2.7 and 3.4, this works:
from bson.binary import Binary
a = Binary(b'abc')
s = set([a])
in python 3.5 the above fails with the error:
TypeError: unhashable type: Binary
Seems like if its hashable in one version of python, it should be in others.
- duplicates
-
PYTHON-977 Some BSON types are hashable in python 2 but not python 3
- Closed