]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-133595: Clean up sqlite3.Connection APIs (GH-133605)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 8 May 2025 12:42:00 +0000 (15:42 +0300)
committerGitHub <noreply@github.com>
Thu, 8 May 2025 12:42:00 +0000 (15:42 +0300)
commitdcf93c4c93b741e84fa75d2b0d00a156aaf07ecf
tree5e786ed1cccba7b4cc607e74588eeae752e4e636
parent2561e148ec985755baa3984b91fd0bfc089b283c
gh-133595: Clean up sqlite3.Connection APIs (GH-133605)

* All parameters of sqlite3.connect() except "database" are now keyword-only.
* The first three parameters of methods create_function() and
  create_aggregate() are now positional-only.
* The first parameter of methods set_authorizer(), set_progress_handler()
  and set_trace_callback() is now positional-only.
17 files changed:
Doc/library/sqlite3.rst
Doc/whatsnew/3.15.rst
Include/internal/pycore_global_objects_fini_generated.h
Include/internal/pycore_global_strings.h
Include/internal/pycore_runtime_init_generated.h
Include/internal/pycore_unicodeobject_generated.h
Lib/test/test_sqlite3/test_dbapi.py
Lib/test/test_sqlite3/test_factory.py
Lib/test/test_sqlite3/test_hooks.py
Lib/test/test_sqlite3/test_userfunctions.py
Misc/NEWS.d/next/Library/2025-05-07-22-15-15.gh-issue-133595.c3U88r.rst [new file with mode: 0644]
Modules/_sqlite/clinic/_sqlite3.connect.c.h
Modules/_sqlite/clinic/connection.c.h
Modules/_sqlite/connection.c
Modules/_sqlite/module.c
Tools/build/.warningignore_macos
Tools/build/.warningignore_ubuntu