diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-07-28 10:32:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-28 10:32:56 (GMT) |
commit | 123079241db8c15af6bf206e2f390ed6a9736231 (patch) | |
tree | a4f6d58e166cb30e3c07637e55e53d32a6c0db34 | |
parent | d3cc99bdce269ff8836bee9fc6f6c275b42a5152 (diff) | |
download | cpython-123079241db8c15af6bf206e2f390ed6a9736231.zip cpython-123079241db8c15af6bf206e2f390ed6a9736231.tar.gz cpython-123079241db8c15af6bf206e2f390ed6a9736231.tar.bz2 |
Docs: Fix refs & tweak wording in sqlite3 'Using shortcut methods' (#95357)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit ea269b9a380a52828d4e401fa695737bcd699398)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
-rw-r--r-- | Doc/library/sqlite3.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index 7d2f3df..633b784 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -1604,8 +1604,9 @@ Using :mod:`sqlite3` efficiently Using shortcut methods ^^^^^^^^^^^^^^^^^^^^^^ -Using the nonstandard :meth:`execute`, :meth:`executemany` and -:meth:`executescript` methods of the :class:`Connection` object, your code can +Using the :meth:`~Connection.execute`, +:meth:`~Connection.executemany`, and :meth:`~Connection.executescript` +methods of the :class:`Connection` class, your code can be written more concisely because you don't have to create the (often superfluous) :class:`Cursor` objects explicitly. Instead, the :class:`Cursor` objects are created implicitly and these shortcut methods return the cursor |