◐ Shell
clean mode source ↗

gh-108278: Deprecate passing the three first params as keyword args for sqlite3 UDF creation APIs by erlend-aasland · Pull Request #108281 · python/cpython

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)

Deprecate passing the callback as a keyword argument, for the following
sqlite3.Connection APIs:

- set_authorizer(callback)
- set_progress_handler(callback, n)
- set_trace_callback(callback)

The affected parameters will become positional-only in Python 3.15.

@erlend-aasland

@erlend-aasland erlend-aasland changed the title gh-108278: Clean up some sqlite3 connection APIs gh-108278: Clean up sqlite3.Connection APIs

Aug 22, 2023

@erlend-aasland erlend-aasland changed the title gh-108278: Clean up sqlite3.Connection APIs gh-108278: Deprecate passing the three first params as keyword args for sqlite3 UDF creation APIs

Aug 23, 2023

erlend-aasland

@erlend-aasland

@erlend-aasland

serhiy-storchaka

vstinner pushed a commit to vstinner/cpython that referenced this pull request

Aug 28, 2023
…args for sqlite3 UDF creation APIs (python#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.