Skip to content

Doc: Add explicit parameter list to sqlite3.connect #94628

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

Closed
erlend-aasland opened this issue Jul 6, 2022 · 3 comments · Fixed by #94629
Closed

Doc: Add explicit parameter list to sqlite3.connect #94628

erlend-aasland opened this issue Jul 6, 2022 · 3 comments · Fixed by #94629
Assignees
Labels
docs Documentation in the Doc dir topic-sqlite3 type-feature A feature request or enhancement

Comments

@erlend-aasland
Copy link
Contributor

The sqlite3.connect module level function has a lot of parameters. Adding an explicit parameter list will add more structure to this function.

Discussed on Discourse, with a proof-of-concept given by CAM.

For now, I do not suggest to adapt all sqlite3 functions and methods to this doc style. That is, however, a possibility, but since most of the functions / methods accept only a very small number of parameters, I'm unsure of the gain.

@erlend-aasland
Copy link
Contributor Author

FTR, other candidates for explicit parameter lists:

  • sqlite3.Connection.create_*
  • sqlite3.Connection.blobopen
  • sqlite3.Connection.backup

Repository owner moved this from TODO: Docs to Done in sqlite3 issues Jul 7, 2022
erlend-aasland added a commit that referenced this issue Jul 7, 2022
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
erlend-aasland added a commit to erlend-aasland/cpython that referenced this issue Jul 7, 2022
… docs (pythonGH-94629)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit 3eb2b96)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
erlend-aasland added a commit to erlend-aasland/cpython that referenced this issue Jul 7, 2022
… docs (pythonGH-94629)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>.
(cherry picked from commit 3eb2b96)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
erlend-aasland added a commit that referenced this issue Jul 7, 2022
…H-94629) (#94645)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit 3eb2b96)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
erlend-aasland added a commit that referenced this issue Jul 7, 2022
…H-94629) (#94646)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>.
(cherry picked from commit 3eb2b96)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
@erlend-aasland
Copy link
Contributor Author

Closed; thanks for the good work with this, @CAM-Gerlach!

sidney pushed a commit to sidney/cpython that referenced this issue Jul 7, 2022
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 topic-sqlite3 type-feature A feature request or enhancement
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant