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

Empty WriteConcern is truthy in Python 2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Duplicate
    • 3.4
    • 3.7
    • API
    • None

    Description

      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__.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: