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

Empty WriteConcern is truthy in Python 2

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.7
    • Affects Version/s: 3.4
    • Component/s: API
    • None

      The WriteConcern class acquired a __bool__ operator in PYTHON-1101. The operator is true if and only if the write concern document is non-empty. But in Python 2 the operator must be called __nonzero__.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: