Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1095

bson.Binary objects unhashable in Python3.5

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 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.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            bmoscon Bryant Moscon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: