summaryrefslogtreecommitdiffstats
path: root/Doc/library/sqlite3.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-03-22 11:49:32 (GMT)
committerGitHub <noreply@github.com>2023-03-22 11:49:32 (GMT)
commit2e0505a1d93b62b6bca046e4b4b920a75f27bd5b (patch)
tree66599337337873a18e9326dd16fb5b26d1aa7a3e /Doc/library/sqlite3.rst
parent00b50606c0b323cbdcb007fe0785cded98f9519a (diff)
downloadcpython-2e0505a1d93b62b6bca046e4b4b920a75f27bd5b.zip
cpython-2e0505a1d93b62b6bca046e4b4b920a75f27bd5b.tar.gz
cpython-2e0505a1d93b62b6bca046e4b4b920a75f27bd5b.tar.bz2
Docs: improve the accuracy of the sqlite3.connect() timeout param (GH-102900)
(cherry picked from commit c24f1f1e874c283bb11d8b9fbd661536ade19fe9) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Diffstat (limited to 'Doc/library/sqlite3.rst')
-rw-r--r--Doc/library/sqlite3.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index 509c4a8..ba2ae83 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: