]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: improve the accuracy of the sqlite3.connect() timeout param (#102900)
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Wed, 22 Mar 2023 11:37:13 +0000 (12:37 +0100)
committerGitHub <noreply@github.com>
Wed, 22 Mar 2023 11:37:13 +0000 (12:37 +0100)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Doc/library/sqlite3.rst

index ff036ad56acba81da59dffe61ba383218e04c3dc..a78f3eb7221746075efd8763bd051d83dfbf6352 100644 (file)
@@ -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.
+       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: