diff options
author | Erlend E. Aasland <erlend.aasland@protonmail.com> | 2023-03-22 11:37:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 11:37:13 (GMT) |
commit | c24f1f1e874c283bb11d8b9fbd661536ade19fe9 (patch) | |
tree | 73e3294395b3dbfaa53880f90e35366c42d909bc /Doc | |
parent | 0a60deaeaf1d129cb061f50995a8b6d9d18fa3ec (diff) | |
download | cpython-c24f1f1e874c283bb11d8b9fbd661536ade19fe9.zip cpython-c24f1f1e874c283bb11d8b9fbd661536ade19fe9.tar.gz cpython-c24f1f1e874c283bb11d8b9fbd661536ade19fe9.tar.bz2 |
Docs: improve the accuracy of the sqlite3.connect() timeout param (#102900)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Diffstat (limited to 'Doc')
-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 ff036ad..a78f3eb 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -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: |