Skip to content

Commit

Permalink
minor: doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Dirolf committed Oct 1, 2009
1 parent 021960f commit 21e8f88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pymongo/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def save(self, to_save, manipulate=True, safe=False):
If `to_save` already has an '_id' then an update (upsert) operation
is performed and any existing document with that _id is overwritten.
Otherwise an insert operation is performed. Returns the _id of the
saved document.
Otherwise an '_id' will be added to `to_save` and an insert operation
is performed. Returns the _id of the saved document.
Raises TypeError if to_save is not an instance of dict. If `safe`
is True then the save will be checked for errors, raising
Expand Down Expand Up @@ -164,6 +164,7 @@ def insert(self, doc_or_docs,
If manipulate is set the document(s) are manipulated using any
SONManipulators that have been added to this database. Returns the _id
of the inserted document or a list of _ids of the inserted documents.
If the document(s) does not already contain an '_id' one will be added.
If `safe` is True then the insert will be checked for errors, raising
OperationFailure if one occurred. Checking for safety requires an extra
round-trip to the database.
Expand Down

0 comments on commit 21e8f88

Please sign in to comment.