Skip to content

Commit 4b83cd0

Browse files
pythongh-97661: Improve accuracy of sqlite3.Cursor.fetchone docs (python#97662)
Co-authored-by: C.A.M. Gerlach <[email protected]>
1 parent c529b45 commit 4b83cd0

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
@@ -1425,7 +1425,9 @@ Cursor objects
14251425

14261426
.. method:: fetchone()
14271427

1428-
Return the next row of a query result set as a :class:`tuple`.
1428+
If :attr:`~Connection.row_factory` is ``None``,
1429+
return the next row query result set as a :class:`tuple`.
1430+
Else, pass it to the row factory and return its result.
14291431
Return ``None`` if no more data is available.
14301432

14311433

0 commit comments

Comments
 (0)