]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-95132: Correctly relay *args and **kwds from sqlite3.connect to factory (#95146)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Sat, 23 Jul 2022 07:51:28 +0000 (09:51 +0200)
committerGitHub <noreply@github.com>
Sat, 23 Jul 2022 07:51:28 +0000 (09:51 +0200)
commita3d4d15f53777662ce0957500e5a538ce7161f5e
tree6471f47ed54d5df11e90342e6a1fff2fa7bad5a4
parentc1e929858ad96fc6e41bc637e5ec9343b4f7e3c7
gh-95132: Correctly relay *args and **kwds from sqlite3.connect to factory (#95146)

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>
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