-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
gh-96168: Improve sqlite3 dict_factory example #96457
gh-96168: Improve sqlite3 dict_factory example #96457
Conversation
- use dict comprehension - use doctest iso. testcode, for visualising the effect of the row factory - SELECT with multiple columns, so the effect of the row factory becomes clearer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple minor comments, otherwise LGTM 👍 It looks a lot clearer to me than before, as well as more testable, concise and following more modern coding practices.
Co-authored-by: C.A.M. Gerlach <[email protected]>
Thanks for the reviews, CAM & Ezio! |
Thanks @erlend-aasland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
GH-96494 is a backport of this pull request to the 3.11 branch. |
Co-authored-by: C.A.M. Gerlach <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> (cherry picked from commit 91f40f3) Co-authored-by: Erlend E. Aasland <[email protected]>
GH-96495 is a backport of this pull request to the 3.10 branch. |
Co-authored-by: C.A.M. Gerlach <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> (cherry picked from commit 91f40f3) Co-authored-by: Erlend E. Aasland <[email protected]>
Co-authored-by: C.A.M. Gerlach <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> (cherry picked from commit 91f40f3) Co-authored-by: Erlend E. Aasland <[email protected]>
Co-authored-by: C.A.M. Gerlach <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> (cherry picked from commit 91f40f3) Co-authored-by: Erlend E. Aasland <[email protected]>
effect of the row factory
the row factory becomes clearer