Skip to content

Commit 5f43097

Browse files
miss-islingtonjiajunjie
authored andcommitted
gh-97661: Improve accuracy of sqlite3.Cursor.fetchone docs (GH-97662)
Co-authored-by: C.A.M. Gerlach <[email protected]> (cherry picked from commit 4b83cd0) Co-authored-by: Jia Junjie <[email protected]>
1 parent 800c9c0 commit 5f43097

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/library/sqlite3.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,9 @@ Cursor objects
14131413

14141414
.. method:: fetchone()
14151415

1416-
Return the next row of a query result set as a :class:`tuple`.
1416+
If :attr:`~Connection.row_factory` is ``None``,
1417+
return the next row query result set as a :class:`tuple`.
1418+
Else, pass it to the row factory and return its result.
14171419
Return ``None`` if no more data is available.
14181420

14191421

0 commit comments

Comments
 (0)