]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108278: Deprecate passing the three first params as keyword args for sqlite3 UDF...
authorErlend E. Aasland <erlend@python.org>
Mon, 28 Aug 2023 13:32:07 +0000 (15:32 +0200)
committerGitHub <noreply@github.com>
Mon, 28 Aug 2023 13:32:07 +0000 (13:32 +0000)
commit4116592b6f014a2720e9b09e2c8dec4bf4b4cd8f
tree676911a42fc5d148e3b118d9998ebfba6a804a9a
parentbc5356bb5d7e3eda44128e89a695c05066e0840b
gh-108278: Deprecate passing the three first params as keyword args for sqlite3 UDF creation APIs (#108281)

Deprecate passing name, number of arguments, and the callable as keyword
arguments, for the following sqlite3.Connection APIs:

- create_function(name, nargs, callable, ...)
- create_aggregate(name, nargs, callable)

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_userfunctions.py
Misc/NEWS.d/next/Library/2023-08-22-13-51-10.gh-issue-108278.11d_qG.rst [new file with mode: 0644]
Modules/_sqlite/clinic/connection.c.h
Modules/_sqlite/connection.c