diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2025-05-08 15:42:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-08 15:42:00 +0300 |
commit | dcf93c4c93b741e84fa75d2b0d00a156aaf07ecf (patch) | |
tree | 5e786ed1cccba7b4cc607e74588eeae752e4e636 /Modules/_sqlite/clinic/_sqlite3.connect.c.h | |
parent | 2561e148ec985755baa3984b91fd0bfc089b283c (diff) | |
download | cpython-dcf93c4c93b741e84fa75d2b0d00a156aaf07ecf.tar.gz cpython-dcf93c4c93b741e84fa75d2b0d00a156aaf07ecf.zip |
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.
Diffstat (limited to 'Modules/_sqlite/clinic/_sqlite3.connect.c.h')
-rw-r--r-- | Modules/_sqlite/clinic/_sqlite3.connect.c.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/Modules/_sqlite/clinic/_sqlite3.connect.c.h b/Modules/_sqlite/clinic/_sqlite3.connect.c.h index 1bcda7702c2..e9d560666c1 100644 --- a/Modules/_sqlite/clinic/_sqlite3.connect.c.h +++ b/Modules/_sqlite/clinic/_sqlite3.connect.c.h @@ -9,23 +9,17 @@ preserve #include "pycore_modsupport.h" // _PyArg_UnpackKeywords() PyDoc_STRVAR(pysqlite_connect__doc__, -"connect($module, /, database, timeout=5.0, detect_types=0,\n" +"connect($module, /, database, *, timeout=5.0, detect_types=0,\n" " isolation_level=\'\', check_same_thread=True,\n" -" factory=ConnectionType, cached_statements=128, uri=False, *,\n" +" factory=ConnectionType, cached_statements=128, uri=False,\n" " autocommit=sqlite3.LEGACY_TRANSACTION_CONTROL)\n" "--\n" "\n" "Open a connection to the SQLite database file \'database\'.\n" "\n" "You can use \":memory:\" to open a database connection to a database that\n" -"resides in RAM instead of on disk.\n" -"\n" -"Note: Passing more than 1 positional argument to _sqlite3.connect() is\n" -"deprecated. Parameters \'timeout\', \'detect_types\', \'isolation_level\',\n" -"\'check_same_thread\', \'factory\', \'cached_statements\' and \'uri\' will\n" -"become keyword-only parameters in Python 3.15.\n" -""); +"resides in RAM instead of on disk."); #define PYSQLITE_CONNECT_METHODDEF \ {"connect", _PyCFunction_CAST(pysqlite_connect), METH_FASTCALL|METH_KEYWORDS, pysqlite_connect__doc__}, -/*[clinic end generated code: output=69b9b00da71c3c0a input=a9049054013a1b77]*/ +/*[clinic end generated code: output=3d83139ba65e0bb5 input=a9049054013a1b77]*/ |