8000 Docs: improve the accuracy of the sqlite3.connect() timeout param (#1… · Fidget-Spinner/cpython@563cf60 · GitHub
[go: up one dir, main page]

Skip to content

Commit 563cf60

Browse files
erlend-aaslandCAM-Gerlach
authored andcommitted
Docs: improve the accuracy of the sqlite3.connect() timeout param (python#102900)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
1 parent e139442 commit 563cf60

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
@@ -272,9 +272,9 @@ Module functions
272272

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

280280
:param int detect_types:

0 commit comments

Comments
 (0)
0