From a74c454642953521c547936b26c051a4ac2b6ffa Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Wed, 22 Mar 2023 10:25:48 +0100 Subject: [PATCH 1/2] Docs: improve the accuracy of the sqlite3.connect() timeout param --- Doc/library/sqlite3.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index ff036ad56acba8..a77edfb7164e28 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -272,9 +272,9 @@ Module functions :param float timeout: How many seconds the connection should wait before raising - an exception, if the database is locked by another connection. - If another connection opens a transaction to modify the database, - it will be locked until that transaction is committed. + :exc:`OperationalError`, when a table is locked. + If another connection opens a transaction to modify a table, + that table will be locked until the transaction is committed. Default five seconds. :param int detect_types: From fc8da35928bfbb362f53468218d7883da75e8e26 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Wed, 22 Mar 2023 12:18:35 +0100 Subject: [PATCH 2/2] Update Doc/library/sqlite3.rst Co-authored-by: C.A.M. Gerlach --- Doc/library/sqlite3.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index a77edfb7164e28..a78f3eb7221746 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -272,7 +272,7 @@ Module functions :param float timeout: How many seconds the connection should wait before raising - :exc:`OperationalError`, when a table is locked. + an :exc:`OperationalError` when a table is locked. If another connection opens a transaction to modify a table, that table will be locked until the transaction is committed. Default five seconds.