diff options
author | Erlend E. Aasland <erlend@python.org> | 2023-08-29 20:02:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-29 20:02:12 (GMT) |
commit | 0b0c1d046cac540deefc56ab3c38732bc76f6c56 (patch) | |
tree | ce91d7e770e3b5f204f377a219fc63aa7f53ddac /Misc/NEWS.d/next | |
parent | 77e8f233acd39420dc8921960715bf6b29587fee (diff) | |
download | cpython-0b0c1d046cac540deefc56ab3c38732bc76f6c56.zip cpython-0b0c1d046cac540deefc56ab3c38732bc76f6c56.tar.gz cpython-0b0c1d046cac540deefc56ab3c38732bc76f6c56.tar.bz2 |
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.
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-08-29-11-29-15.gh-issue-108278.-UhsnJ.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-08-29-11-29-15.gh-issue-108278.-UhsnJ.rst b/Misc/NEWS.d/next/Library/2023-08-29-11-29-15.gh-issue-108278.-UhsnJ.rst new file mode 100644 index 0000000..fa2dbdf --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-08-29-11-29-15.gh-issue-108278.-UhsnJ.rst @@ -0,0 +1,10 @@ +Deprecate passing the callback callable by keyword for the following +:class:`sqlite3.Connection` APIs: + +* :meth:`~sqlite3.Connection.set_authorizer` +* :meth:`~sqlite3.Connection.set_progress_handler` +* :meth:`~sqlite3.Connection.set_trace_callback` + +The affected parameters will become positional-only in Python 3.15. + +Patch by Erlend E. Aasland. |