summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGerhard Häring <gh@ghaering.de>2010-08-06 06:13:25 (GMT)
committerGerhard Häring <gh@ghaering.de>2010-08-06 06:13:25 (GMT)
commit5d8cd24100bf2e6754e405aeafdc98086a7bc2df (patch)
treec19906a02e92d572d94685ec34ef8acbcd1f88c7 /Doc
parente56a386e0e787162b1deffa15a07538d06ad6ce0 (diff)
downloadcpython-5d8cd24100bf2e6754e405aeafdc98086a7bc2df.zip
cpython-5d8cd24100bf2e6754e405aeafdc98086a7bc2df.tar.gz
cpython-5d8cd24100bf2e6754e405aeafdc98086a7bc2df.tar.bz2
Issue #3854: Documented using the sqlite3 module with multiple threads.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/sqlite3.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index 668fc64..d542cbb 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -840,3 +840,18 @@ exception, the transaction is rolled back; otherwise, the transaction is
committed:
.. literalinclude:: ../includes/sqlite3/ctx_manager.py
+
+
+Common issues
+-------------
+
+Multithreading
+^^^^^^^^^^^^^^
+
+Older SQLite versions had issues with sharing connections between threads.
+That's why the Python module disallows sharing connections and cursors between
+threads. If you still try to do so, you will get an exception at runtime.
+
+The only exception is calling the :meth:`~Connection.interrupt` method, which
+only makes sense to call from a different thread.
+