Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Oct 3, 2023

(cherry picked from commit 4227bfa)

Co-authored-by: Lincoln 71312724+Lincoln-developer@users.noreply.github.com
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland erlend@python.org


📚 Documentation preview 📚: https://cpython-previews--110293.org.readthedocs.build/

…textlib.closing pythongh-109234 (pythonGH-109322)

* Enhanced sqlite3 connection context management documentation with contextlib.closing

* 📜🤖 Added by blurb_it.

* Fixed gitignore spelling error from nitignore to gitignore

* Renamed .gitignore to .nitignore

* Added generated doctests

* Deleted sqlite3 generated files

* Removed white-space changes

* Removed News entry from the doc

* Expanded a note that context manager can be used for connection management using contextlib.closing

* Removed repeated contextlib.closing code snippet

* Expanded the note around usage of context manageer for sqlite3 connection management

* Deleted extra white-spaces

* Deleted extra white-space

* re-arranged context manager wording

* Re-arranged word layout on how to use context manager

* Fix whitespace errors

* Remove unneeded change in .gitignore

* Added suggested changes

* Added suggested change redirecting to the contextlib.closing implementation

* Added closing keyword

* Removed line 2473

---------

(cherry picked from commit 4227bfa)

Co-authored-by: Lincoln <71312724+Lincoln-developer@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
@bedevere-app bedevere-app bot added docs Documentation in the Doc dir skip news awaiting review labels Oct 3, 2023
@erlend-aasland erlend-aasland enabled auto-merge (squash) October 3, 2023 15:59
@erlend-aasland erlend-aasland changed the title [3.11] Enhanced sqlite3 connection context management documentation with contextlib.closing gh-109234 (GH-109322) [3.11] gh-109234: Hint to contextlib.closing in sqlite3 context manager docs (GH-109322) Oct 3, 2023
@erlend-aasland erlend-aasland merged commit 6a6e887 into python:3.11 Oct 3, 2023
@miss-islington miss-islington deleted the backport-4227bfa-3.11 branch October 3, 2023 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants