Skip to content

gh-133595: Clean up sqlite3.Connection APIs - #133605

Merged
serhiy-storchaka merged 8 commits into
python:mainfrom
serhiy-storchaka:sqlite3-api-end-deprecation
May 8, 2025
Merged

serhiy-storchaka merged 8 commits into
python:mainfrom
serhiy-storchaka:sqlite3-api-end-deprecation

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented May 7, 2025 •

Copy link
Copy Markdown
Member
  • 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.

📚 Documentation preview 📚: https://cpython-previews--133605.org.readthedocs.build/

* 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.
Comment thread Doc/library/sqlite3.rst Resolved
@zware

zware commented May 7, 2025

Copy link
Copy Markdown
Member

Please forgive the intrusion; I merged main and reverted the relevant bits of GH-133599 to allow CI to pass.

@serhiy-storchaka
serhiy-storchaka merged commit dcf93c4 into python:main May 8, 2025
@serhiy-storchaka
serhiy-storchaka deleted the sqlite3-api-end-deprecation branch May 8, 2025 12:42
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
* 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.
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants