From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 22 Mar 2023 11:49:32 +0000 (-0700) Subject: Docs: improve the accuracy of the sqlite3.connect() timeout param (GH-102900) X-Git-Tag: v3.10.11~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e0505a1d93b62b6bca046e4b4b920a75f27bd5b;p=thirdparty%2FPython%2Fcpython.git Docs: improve the accuracy of the sqlite3.connect() timeout param (GH-102900) (cherry picked from commit c24f1f1e874c283bb11d8b9fbd661536ade19fe9) Co-authored-by: Erlend E. Aasland Co-authored-by: C.A.M. Gerlach --- diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index 509c4a8277eb..ba2ae83642a5 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -271,9 +271,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. + 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. :param int detect_types: