Skip to content

Commit db75dda

Browse files
sorced-jimtseaver
authored andcommitted
Show use of 'batch.begin()' in docstring example. (googleapis#6932)
1 parent 122850b commit db75dda

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • datastore/google/cloud/datastore

datastore/google/cloud/datastore/batch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class Batch(object):
3737
>>> from google.cloud import datastore
3838
>>> client = datastore.Client()
3939
>>> batch = client.batch()
40+
>>> batch.begin()
4041
>>> batch.put(entity1)
4142
>>> batch.put(entity2)
4243
>>> batch.delete(key3)

0 commit comments

Comments
 (0)