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

Traceback when hashing a DBRef instance.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      ALL

      This is caused by trying to hash self.__kwargs which is a dict and unhashable.

      Repro steps:

      1. Create a DBRef: dbr = DBRef('coll', 5, foo='bar')
      2. Try to hash it: hash(dbr)
      Traceback

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

              Created:
              Updated:
              Resolved: