[Python-checkins] gh-97661: Improve accuracy of sqlite3.Cursor.fetchone docs (GH-97662)

miss-islington webhook-mailer at python.org
Wed Oct 5 04:57:35 EDT 2022


https://github.com/python/cpython/commit/79b5c1ad3c750312d6af062a70808555b4ea49ab
commit: 79b5c1ad3c750312d6af062a70808555b4ea49ab
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-10-05T01:57:30-07:00
summary:

gh-97661: Improve accuracy of sqlite3.Cursor.fetchone docs (GH-97662)


Co-authored-by: C.A.M. Gerlach <CAM.Gerlach at Gerlach.CAM>
(cherry picked from commit 4b83cd0b22428fbfccf1f0e85c0fc36be6ab7edf)

Co-authored-by: Jia Junjie <62194633+jiajunjie at users.noreply.github.com>

files:
M Doc/library/sqlite3.rst

diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index 70cf43c2544e..8fdb75349540 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -1412,7 +1412,9 @@ Cursor objects
 
    .. method:: fetchone()
 
-      Return the next row of a query result set as a :class:`tuple`.
+      If :attr:`~Connection.row_factory` is ``None``,
+      return the next row query result set as a :class:`tuple`.
+      Else, pass it to the row factory and return its result.
       Return ``None`` if no more data is available.
 
 



More information about the Python-checkins mailing list