File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,21 @@ def _raise_if_unacknowledged(self, property_name):
3333
3434 @property
3535 def acknowledged (self ):
36- """Is this the result of an acknowledged write operation?"""
36+ """Is this the result of an acknowledged write operation?
37+
38+ The :attr:`acknowledged` attribute will be ``False`` when using
39+ ``WriteConcern(w=0)``, otherwise ``True``.
40+
41+ .. note::
42+ If the :attr:`acknowledged` attribute is ``False`` all other
43+ attibutes of this class will raise
44+ :class:`~pymongo.errors.InvalidOperation` when accessed. Values for
45+ other attributes cannot be determined if the write operation was
46+ unacknowledged.
47+
48+ .. seealso::
49+ :class:`~pymongo.write_concern.WriteConcern`
50+ """
3751 return self .__acknowledged
3852
3953
You can’t perform that action at this time.
0 commit comments