diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-03-22 11:49:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 11:49:32 (GMT) |
commit | 2e0505a1d93b62b6bca046e4b4b920a75f27bd5b (patch) | |
tree | 66599337337873a18e9326dd16fb5b26d1aa7a3e /Doc/library/sqlite3.rst | |
parent | 00b50606c0b323cbdcb007fe0785cded98f9519a (diff) | |
download | cpython-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.rst | 6 |
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: |