-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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-95273: Move sqlite3 executemany examples from reference to tutorial #95351
gh-95273: Move sqlite3 executemany examples from reference to tutorial #95351
Conversation
erlend-aasland
commented
Jul 27, 2022
•
edited by bedevere-bot
Loading
edited by bedevere-bot
- Issue: Improve the sqlite3 reference #95273
My 2 cents: The executemany examples are way more complex than the average user needs. We should focus on the sqlite3 module; not on writing fancy iterators. The only thing that bothers me, is that we do not explicitly mention that the cursor can be used as an iterator. We could add a mention in the cursor class description. |
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. Thanks @erlend-aasland !
Co-authored-by: CAM Gerlach <[email protected]>
Co-authored-by: CAM Gerlach <[email protected]>
I've got quite a lot on at the moment, so I'll leave this one in @CAM-Gerlach's very capable hands, if that's okay! |
I wonder if it may make sense to keep a minimum example in the reference, though. The two previous examples ate more than a screenful. How about leaving something like this:
|
SGTM; concise examples can certainly be helpful to aiding understanding and this one certainly helps me understand the purpose of |
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.
LGTM, thanks @erlend-aasland 👍
Thanks @erlend-aasland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Thanks @erlend-aasland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
…utorial (pythonGH-95351) (cherry picked from commit f0bf795) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
GH-95420 is a backport of this pull request to the 3.10 branch. |
…utorial (pythonGH-95351) (cherry picked from commit f0bf795) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
GH-95421 is a backport of this pull request to the 3.11 branch. |
GH-95351) (cherry picked from commit f0bf795) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
GH-95351) (cherry picked from commit f0bf795) Co-authored-by: Erlend Egeberg Aasland <[email protected]>