Repository navigation
[Doc] sqlite3 Cursor.execute() return value is unspecified #90923
Description
Activity
In the documentation of the sqlite3 module, the return value for Connection.execute() is told to be the Cursor that was implicitly created, but nothing is said about the return value/type when using Cursor.execute().
- added3.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of life3.10 (EOL)end of lifeend of life3.11only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
on Feb 16, 2022 Quoting the docs:
This is a nonstandard shortcut that creates a cursor object by calling the
cursor() method, calls the cursor’s execute() method with the parameters
given, and returns the cursor.There is already a backlink (or back reference) to the Connection.cursor() method, which again has a backlink to the Cursor class. What would you suggest to make things clearer?
How about the following rewording:
"[...] and returns the newly created cursor object".
(IMO this is too verbose; I'm fine with the current docs.)
- addeddocsDocumentation in the Doc dirDocumentation in the Doc dirand removedtype-featureA feature request or enhancementA feature request or enhancement
on Apr 17, 2022 After re-reading the current docs, I think a rewording might be helpful. I'll see if I can make things a little bit clearer.
- added a commit that references this issue
on Apr 17, 2022 - added a commit that references this issue
on Apr 17, 2022
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields: