]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-97661: Improve accuracy of sqlite3.Cursor.fetchone docs (GH-97662)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 5 Oct 2022 08:57:30 +0000 (01:57 -0700)
committerPablo Galindo <pablogsal@gmail.com>
Sat, 22 Oct 2022 19:05:17 +0000 (20:05 +0100)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit 4b83cd0b22428fbfccf1f0e85c0fc36be6ab7edf)

Co-authored-by: Jia Junjie <62194633+jiajunjie@users.noreply.github.com>
Doc/library/sqlite3.rst

index a9d20a1a455bf03525baf9cae29f004ad0b1710a..110d262ee600dd9c5239d5dac2bfc5d6658e9a5b 100644 (file)
@@ -1413,7 +1413,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.