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

Read preference classes __eq__ should return NotImplemented

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 3.1
    • Affects Version/s: 3.0
    • Component/s: None
    • None

      The __eq__ methods of both _ServerMode and Primary raise NotImplementedError when compared against an incompatible type. They should return NotImplemented instead.

      https://docs.python.org/2/library/constants.html#NotImplemented

            Assignee:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: