8000 gh-61162: Clarify sqlite3 connection context manager docs by erlend-aasland · Pull Request #93890 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-61162: Clarify sqlite3 connection context manager docs #93890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Jun 19, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Doc/library/sqlite3.rst
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
  • Loading branch information
Erlend Egeberg Aasland and CAM-Gerlach authored Jun 16, 2022
commit 8808fb91b0d12321ee1e3a408e81c708ad8dbf90
4 changes: 2 additions & 2 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1440,8 +1440,8 @@ Connection objects can be used as context managers that automatically commit or
rollback open transactions when leaving the body of the context manager.
If the body of the :keyword:`with` statement finishes without exceptions,
the transaction is committed.
If this commit fails, the transaction is rolled back.
If the body of the ``with`` statement raise an exception which is not caught,
If this commit fails,
or the body of the ``with`` statement raise an exception which is not caught,
the transaction is rolled back.

If there is no open transaction upon leaving the body of the ``with`` statement,
Expand Down
0