summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-10-05 08:56:47 (GMT)
committerGitHub <noreply@github.com>2022-10-05 08:56:47 (GMT)
commit3c09debaa72cab1f5eaa747faea3e77c9dc5e007 (patch)
treee0ffa1bd6a9a1eb083d0d722470abe4b900f063d /Doc
parentece5f7e04600150712d88b928b76d0f2de5f5011 (diff)
downloadcpython-3c09debaa72cab1f5eaa747faea3e77c9dc5e007.zip
cpython-3c09debaa72cab1f5eaa747faea3e77c9dc5e007.tar.gz
cpython-3c09debaa72cab1f5eaa747faea3e77c9dc5e007.tar.bz2
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 4b83cd0b22428fbfccf1f0e85c0fc36be6ab7edf) Co-authored-by: Jia Junjie <62194633+jiajunjie@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/sqlite3.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index 01e600c..5f276c8 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -1121,7 +1121,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.