Skip to content

Commit 79b5c1a

Browse files
gh-97661: Improve accuracy of sqlite3.Cursor.fetchone docs (GH-97662)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> (cherry picked from commit 4b83cd0) Co-authored-by: Jia Junjie <62194633+jiajunjie@users.noreply.github.com>
1 parent 015b49a commit 79b5c1a

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
@@ -1412,7 +1412,9 @@ Cursor objects
14121412

14131413
.. method:: fetchone()
14141414

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

14181420

0 commit comments

Comments
 (0)