Closed
Description
See #93057 (comment):
[...] we have some technical dept when it comes to
sqlite3.connect
andsqlite3.Connection.__init__
. Currently, the latter uses clinic, and the former does not use clinic. However, it issqlite3.connect
that needs the docstring, notsqlite3.Connection.__init__
. We should make it so that the docstring fromsqlite3.Connection.__init__
is used forsqlite3.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
- gh-107938: Synchonise the signature of of sqlite3.connect and sqlite3.Connection.__init__ #107939
- [3.12] gh-107938: Synchonise the signature of of sqlite3.connect and sqlite3.Connection.__init__ (GH-107939) #107943
- [3.11] gh-107938: Synchonise the signature of of sqlite3.connect and sqlite3.Connection.__init__ (#107939) #107946