]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-95132: Correctly relay *args and **kwds from sqlite3.connect to factory...
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Sat, 23 Jul 2022 08:23:19 +0000 (10:23 +0200)
committerGitHub <noreply@github.com>
Sat, 23 Jul 2022 08:23:19 +0000 (10:23 +0200)
commit5d3f2fbf37cd8faa9830490ac244b051d3879990
tree69353dadec115b0f1492148f1034b7deee895837
parent064462a719509c1382207387e3a3ef187f7b55bf
[3.11] gh-95132: Correctly relay *args and **kwds from sqlite3.connect to factory (GH-95146) (#95158)

This PR partially reverts gh-24421 (PR) and fixes the remaining concerns
given in gh-93044 (issue):

- keyword arguments are passed as positional arguments to factory()
- if an argument is not passed to sqlite3.connect(), its default value
  is passed to factory()

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>.
(cherry picked from commit a3d4d15f53777662ce0957500e5a538ce7161f5e)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Lib/test/test_sqlite3/test_factory.py
Misc/NEWS.d/next/Library/2022-07-22-21-18-17.gh-issue-95132.n9anlw.rst [new file with mode: 0644]
Modules/_sqlite/clinic/module.c.h
Modules/_sqlite/connection.c
Modules/_sqlite/module.c