-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
gh-108278: Deprecate passing the three first params as keyword args for sqlite3 UDF creation APIs #108281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-108278: Deprecate passing the three first params as keyword args for sqlite3 UDF creation APIs #108281
Conversation
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.
I updated the PR to only affect UDF creation APIs. |
I'd like to land this; are you ok with the change, @serhiy-storchaka? |
I'm landing this. It is for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but please get an approval of yet one core developer. Has this change been discussed with a wider audience?
I posted a topic on Discourse. Brett and Berker left a "heart" reaction; I did not get any discouragements. Since Berker also is a code owner for the sqlite3 code, I count that as fairly strong support. |
Well, then go ahead! |
There's a new commit after the PR has been approved. @serhiy-storchaka: please review the changes made to this pull request. |
…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.
Deprecate passing name, number of arguments, and the callable as keyword
arguments, for the following sqlite3.Connection APIs:
The affected parameters will become positional-only in Python 3.15.
📚 Documentation preview 📚: https://cpython-previews--108281.org.readthedocs.build/