when loading in documents using the bson.json_util.dumps function, loaded Binary objects are not hashable.
it is possible to wrap these objects in bytes(), but yet another isinstance check is not something i'd like to add - especially when the same code works without it in python2.
the docs all say that in py3 Binary objects loaded from the db are converted to native bytes in python3 - can this behavior be replicated for load from json_util.loads ?
- is duplicated by
-
PYTHON-1095 bson.Binary objects unhashable in Python3.5
- Closed