]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-97661: Improve accuracy of sqlite3.Cursor.fetchone docs (#97662)
authorJia Junjie <62194633+jiajunjie@users.noreply.github.com>
Wed, 5 Oct 2022 08:47:54 +0000 (16:47 +0800)
committerGitHub <noreply@github.com>
Wed, 5 Oct 2022 08:47:54 +0000 (10:47 +0200)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Doc/library/sqlite3.rst

index e2774a502403e7fa5156dc7e46e000b30e15866a..26a085877ec1126b1c51e40dae768525cc9feaa6 100644 (file)
@@ -1425,7 +1425,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.