Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 24ba02b

Browse filesBrowse files
committed
Merge pull request #784 from dhermes/fix-781
Removing outdated Transaction.succeeded docs.
2 parents daa0027 + 7dcd496 commit 24ba02b
Copy full SHA for 24ba02b

File tree

Expand file treeCollapse file tree

1 file changed

+0
-17
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-17
lines changed

‎gcloud/datastore/transaction.py

Copy file name to clipboardExpand all lines: gcloud/datastore/transaction.py
-17Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,6 @@ class Transaction(Batch):
7070
...
7171
>>> assert not entity.key.is_partial # There *is* an ID.
7272
73-
After completion, you can determine if a commit succeeded or failed.
74-
For example, trying to delete a key that doesn't exist::
75-
76-
>>> with datastore.Transaction() as xact:
77-
... xact.delete(key)
78-
...
79-
>>> xact.succeeded
80-
False
81-
82-
or successfully storing two entities:
83-
84-
>>> with datastore.Transaction() as xact:
85-
... datastore.put([entity1, entity2])
86-
...
87-
>>> xact.succeeded
88-
True
89-
9073
If you don't want to use the context manager you can initialize a
9174
transaction manually::
9275

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.