]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108278: Deprecate passing the first param of sqlite3.Connection callback APIs...
authorErlend E. Aasland <erlend@python.org>
Tue, 29 Aug 2023 20:02:12 +0000 (22:02 +0200)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2023 20:02:12 +0000 (22:02 +0200)
commit0b0c1d046cac540deefc56ab3c38732bc76f6c56
treece91d7e770e3b5f204f377a219fc63aa7f53ddac
parent77e8f233acd39420dc8921960715bf6b29587fee
gh-108278: Deprecate passing the first param of sqlite3.Connection callback APIs by keyword (#108632)

Deprecate passing the callback callable by keyword for the following
sqlite3.Connection APIs:

- set_authorizer(authorizer_callback)
- set_progress_handler(progress_handler, ...)
- set_trace_callback(trace_callback)

The affected parameters will become positional-only in Python 3.15.
Doc/library/sqlite3.rst
Doc/whatsnew/3.13.rst
Lib/test/test_sqlite3/test_hooks.py
Lib/test/test_sqlite3/test_userfunctions.py
Misc/NEWS.d/next/Library/2023-08-29-11-29-15.gh-issue-108278.-UhsnJ.rst [new file with mode: 0644]
Modules/_sqlite/clinic/connection.c.h
Modules/_sqlite/connection.c