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

Traceback when hashing a DBRef instance.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.10.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      ALL
    • # Replies:
      1
    • Last comment by Customer:
      false

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              behackett Bernie Hackett
              Reporter:
              behackett Bernie Hackett
              Participants:
              Last commenter:
              Rathi Gnanasekaran
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                7 years, 42 weeks, 1 day ago