From 263642c244465cac90f44a92e586749556784c97 Mon Sep 17 00:00:00 2001 From: Erlend Egeberg Aasland Date: Wed, 27 Jul 2022 14:46:21 +0200 Subject: [PATCH] gh-94630: Fixup sqlite3 argument spec docs for connection execute* methods (GH-95319) (cherry picked from commit 2b37395612ece0a8c37439801087ba9e2c56702f) Co-authored-by: Erlend Egeberg Aasland --- Doc/library/sqlite3.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index f8b800bfdc2981..7f1293af58a56e 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -413,19 +413,19 @@ Connection Objects make sure to :meth:`commit` before closing to avoid losing pending changes. - .. method:: execute(sql[, parameters]) + .. method:: execute(sql, parameters=(), /) Create a new :class:`Cursor` object and call :meth:`~Cursor.execute` on it with the given *sql* and *parameters*. Return the new cursor object. - .. method:: executemany(sql[, parameters]) + .. method:: executemany(sql, parameters, /) Create a new :class:`Cursor` object and call :meth:`~Cursor.executemany` on it with the given *sql* and *parameters*. Return the new cursor object. - .. method:: executescript(sql_script) + .. method:: executescript(sql_script, /) Create a new :class:`Cursor` object and call :meth:`~Cursor.executescript` on it with the given *sql_script*. @@ -774,11 +774,11 @@ Cursor Objects a transaction is implicitly opened before executing *sql*. - .. method:: executemany(sql, seq_of_parameters, /) + .. method:: executemany(sql, parameters, /) Execute :ref:`parameterized ` SQL statement *sql* against all parameter sequences or mappings found in the sequence - *seq_of_parameters*. It is also possible to use an + *parameters*. It is also possible to use an :term:`iterator` yielding parameters instead of a sequence. Uses the same implicit transaction handling as :meth:`~Cursor.execute`.