diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-08-29 11:29:55 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-08-29 11:29:55 (GMT) |
commit | ef113cd4cc2c16fa0ce59e325ee587698d62e1ae (patch) | |
tree | 0bbd4523aae926a7495471502c4a10a2590aeb9a /Doc | |
parent | 5de141f157ab372f5dd5b28c17442e41e15101af (diff) | |
download | cpython-ef113cd4cc2c16fa0ce59e325ee587698d62e1ae.zip cpython-ef113cd4cc2c16fa0ce59e325ee587698d62e1ae.tar.gz cpython-ef113cd4cc2c16fa0ce59e325ee587698d62e1ae.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')
-rw-r--r-- | Doc/library/sqlite3.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index d8fd6e7..5b222c7 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() |