summaryrefslogtreecommitdiffstats
path: root/Doc/library/sqlite3.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-08-29 12:11:52 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-08-29 12:11:52 (GMT)
commit8631da64bb1f163026b7be82884f8e5b506e0e66 (patch)
tree8e038d5acc352dfa2d74fa8f476e3017d0c98c97 /Doc/library/sqlite3.rst
parentd0f5bab21b9828f4764bd45e4afe24f23c1a55b0 (diff)
parentef113cd4cc2c16fa0ce59e325ee587698d62e1ae (diff)
downloadcpython-8631da64bb1f163026b7be82884f8e5b506e0e66.zip
cpython-8631da64bb1f163026b7be82884f8e5b506e0e66.tar.gz
cpython-8631da64bb1f163026b7be82884f8e5b506e0e66.tar.bz2
Issue #27861: Fixed a crash in sqlite3.Connection.cursor() when a factory
creates not a cursor. Patch by Xiang Zhang.
Diffstat (limited to 'Doc/library/sqlite3.rst')
-rw-r--r--Doc/library/sqlite3.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index 1498ead..c4d4d78 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -285,11 +285,11 @@ Connection Objects
.. versionadded:: 3.2
- .. method:: cursor([cursorClass])
+ .. method:: cursor(factory=Cursor)
- The cursor method accepts a single optional parameter *cursorClass*. If
- supplied, this must be a custom cursor class that extends
- :class:`sqlite3.Cursor`.
+ The cursor method accepts a single optional parameter *factory*. If
+ supplied, this must be a callable returning an instance of :class:`Cursor`
+ or its subclasses.
.. method:: commit()