Skip to content

Commit

Permalink
Docs: improve the accuracy of the sqlite3.connect() timeout param (py…
Browse files Browse the repository at this point in the history
…thon#102900)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
  • Loading branch information
erlend-aasland and CAM-Gerlach committed Mar 22, 2023
1 parent 0a60dea commit c24f1f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c24f1f1

Please sign in to comment.