Skip to content

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

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

Merged

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented May 7, 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.

📚 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.
@zware
Copy link
Member

zware commented May 7, 2025

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
39 checks passed
@serhiy-storchaka serhiy-storchaka deleted the sqlite3-api-end-deprecation branch May 8, 2025 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants