8000 Docs: improve the accuracy of the sqlite3.connect() timeout param (GH… · python/cpython@9a1453b · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a1453b

Browse files
miss-islingtonerlend-aaslandCAM-Gerlach
authored
Docs: improve the accuracy of the sqlite3.connect() timeout param (GH-102900)
(cherry picked from commit c24f1f1) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
1 parent 44782d3 commit 9a1453b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/sqlite3.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ Module functions
271271

272272
:param float timeout:
273273
How many seconds the connection should wait before raising
274-
an exception, if the database is locked by another connection.
275-
If another connection opens a transaction to modify the database,
276-
it will be locked until that transaction is committed.
274+
an :exc:`OperationalError` when a table is locked.
275+
If another connection opens a transaction to modify a table,
276+
that table will be locked until the transaction is committed.
277277
Default five seconds.
278278

279279
:param int detect_types:

0 commit comments

Comments
 (0)
0