mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
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.
This commit is contained in:
parent
77e8f233ac
commit
0b0c1d046c
7 changed files with 206 additions and 22 deletions
|
@ -763,10 +763,10 @@ Connection objects
|
|||
... print(row)
|
||||
('acbd18db4cc2f85cedef654fccc4a4d8',)
|
||||
|
||||
.. versionchanged:: 3.13
|
||||
.. versionchanged:: 3.13
|
||||
|
||||
Passing *name*, *narg*, and *func* as keyword arguments is deprecated.
|
||||
These parameters will become positional-only in Python 3.15.
|
||||
Passing *name*, *narg*, and *func* as keyword arguments is deprecated.
|
||||
These parameters will become positional-only in Python 3.15.
|
||||
|
||||
|
||||
.. method:: create_aggregate(name, n_arg, aggregate_class)
|
||||
|
@ -822,10 +822,10 @@ Connection objects
|
|||
|
||||
3
|
||||
|
||||
.. versionchanged:: 3.13
|
||||
.. versionchanged:: 3.13
|
||||
|
||||
Passing *name*, *n_arg*, and *aggregate_class* as keyword arguments is deprecated.
|
||||
These parameters will become positional-only in Python 3.15.
|
||||
Passing *name*, *n_arg*, and *aggregate_class* as keyword arguments is deprecated.
|
||||
These parameters will become positional-only in Python 3.15.
|
||||
|
||||
|
||||
.. method:: create_window_function(name, num_params, aggregate_class, /)
|
||||
|
@ -991,6 +991,11 @@ Connection objects
|
|||
.. versionchanged:: 3.11
|
||||
Added support for disabling the authorizer using ``None``.
|
||||
|
||||
.. versionchanged:: 3.13
|
||||
|
||||
Passing *authorizer_callback* as a keyword argument to is deprecated.
|
||||
The parameter will become positional-only in Python 3.15.
|
||||
|
||||
|
||||
.. method:: set_progress_handler(progress_handler, n)
|
||||
|
||||
|
@ -1006,6 +1011,11 @@ Connection objects
|
|||
currently executing query and cause it to raise a :exc:`DatabaseError`
|
||||
exception.
|
||||
|
||||
.. versionchanged:: 3.13
|
||||
|
||||
Passing *progress_handler* as a keyword argument to is deprecated.
|
||||
The parameter will become positional-only in Python 3.15.
|
||||
|
||||
|
||||
.. method:: set_trace_callback(trace_callback)
|
||||
|
||||
|
@ -1030,6 +1040,11 @@ Connection objects
|
|||
|
||||
.. versionadded:: 3.3
|
||||
|
||||
.. versionchanged:: 3.13
|
||||
|
||||
Passing *trace_callback* as a keyword argument to is deprecated.
|
||||
The parameter will become positional-only in Python 3.15.
|
||||
|
||||
|
||||
.. method:: enable_load_extension(enabled, /)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue