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__.
- duplicates
-
PYTHON-1523 PyMongo adds empty writeConcern to commands with Python 2
- Closed
- is caused by
-
PYTHON-1101 Support sending writeConcern for commands that write
- Closed