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

Traceback when hashing a DBRef instance.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 1.10.1
    • None
    • None
    • ALL

    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

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

            Dates

              Created:
              Updated:
              Resolved: