Skip to content

Commit 3c09deb

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 ece5f7e commit 3c09deb

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
@@ -1121,7 +1121,9 @@ Cursor objects
11211121

11221122
.. method:: fetchone()
11231123

1124-
Return the next row of a query result set as a :class:`tuple`.
1124+
If :attr:`~Connection.row_factory` is ``None``,
1125+
return the next row query result set as a :class:`tuple`.
1126+
Else, pass it to the row factory and return its result.
11251127
Return ``None`` if no more data is available.
11261128

11271129

0 commit comments

Comments
 (0)