[Python-checkins] cpython (2.7): Fix Issue10020 - Doc update to sqlite3 module in 2.7 branch.
senthil.kumaran
python-checkins at python.org
Sun Jun 26 05:48:42 CEST 2011
http://hg.python.org/cpython/rev/804a60029091
changeset: 70986:804a60029091
branch: 2.7
user: Senthil Kumaran <senthil at uthcode.com>
date: Sat Jun 25 20:48:21 2011 -0700
summary:
Fix Issue10020 - Doc update to sqlite3 module in 2.7 branch.
files:
Doc/library/sqlite3.rst | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -378,6 +378,8 @@
.. literalinclude:: ../includes/sqlite3/load_extension.py
+ Loadable extensions are disabled by default. See [#f1]_
+
.. method:: Connection.load_extension(path)
.. versionadded:: 2.7
@@ -386,6 +388,8 @@
enable extension loading with :meth:`enable_load_extension` before you can
use this routine.
+ Loadable extensions are disabled by default. See [#f1]_
+
.. attribute:: Connection.row_factory
You can change this attribute to a callable that accepts the cursor and the
@@ -893,3 +897,11 @@
The only exception is calling the :meth:`~Connection.interrupt` method, which
only makes sense to call from a different thread.
+
+.. rubric:: Footnotes
+
+.. [#f1] The sqlite3 module is not built with loadable extension support by
+ default, because some platforms (notably Mac OS X) have SQLite libraries which
+ are compiled without this feature. To get loadable extension support, you must
+ modify setup.py and remove the line that sets SQLITE_OMIT_LOAD_EXTENSION.
+
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list