Skip to content
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

Synchronise the signature of sqlite3.connect? and sqlite3.Connection.__init__` #107938

Closed
erlend-aasland opened this issue Aug 14, 2023 · 0 comments
Assignees

Comments

@erlend-aasland
Copy link
Contributor

erlend-aasland commented Aug 14, 2023

See #93057 (comment):

[...] we have some technical dept when it comes to sqlite3.connect and sqlite3.Connection.__init__. Currently, the latter uses clinic, and the former does not use clinic. However, it is sqlite3.connect that needs the docstring, not sqlite3.Connection.__init__. We should make it so that the docstring from sqlite3.Connection.__init__ is used for sqlite3.connect and output to a separate file, for inclusion by Module/_sqlite/module.c.

Previously, the two argument specs needed to be kept in sync manually. Some fairly recent changes improved this, but we still need to keep the docstring and methoddef of sqlite3.connect up to date manually.

Linked PRs

erlend-aasland added a commit to erlend-aasland/cpython that referenced this issue Aug 14, 2023
@erlend-aasland erlend-aasland self-assigned this Aug 14, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 14, 2023
…qlite3.Connection.__init__ (pythonGH-107939)

(cherry picked from commit 6fbaba5)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
erlend-aasland added a commit to erlend-aasland/cpython that referenced this issue Aug 14, 2023
…t and sqlite3.Connection.__init__ (python#107939)

(cherry picked from commit 6fbaba5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant