Skip to content

Commit f281182

Browse files
gh-94630: Fixup sqlite3 argument spec docs for connection execute* methods (GH-95319)
(cherry picked from commit 2b37395) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
1 parent 6b01fc7 commit f281182

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/library/sqlite3.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -489,19 +489,19 @@ Connection Objects
489489
make sure to :meth:`commit` before closing
490490
to avoid losing pending changes.
491491

492-
.. method:: execute(sql[, parameters])
492+
.. method:: execute(sql, parameters=(), /)
493493

494494
Create a new :class:`Cursor` object and call
495495
:meth:`~Cursor.execute` on it with the given *sql* and *parameters*.
496496
Return the new cursor object.
497497

498-
.. method:: executemany(sql[, parameters])
498+
.. method:: executemany(sql, parameters, /)
499499

500500
Create a new :class:`Cursor` object and call
501501
:meth:`~Cursor.executemany` on it with the given *sql* and *parameters*.
502502
Return the new cursor object.
503503

504-
.. method:: executescript(sql_script)
504+
.. method:: executescript(sql_script, /)
505505

506506
Create a new :class:`Cursor` object and call
507507
:meth:`~Cursor.executescript` on it with the given *sql_script*.
@@ -971,11 +971,11 @@ Cursor Objects
971971
a transaction is implicitly opened before executing *sql*.
972972

973973

974-
.. method:: executemany(sql, seq_of_parameters, /)
974+
.. method:: executemany(sql, parameters, /)
975975

976976
Execute :ref:`parameterized <sqlite3-placeholders>` SQL statement *sql*
977977
against all parameter sequences or mappings found in the sequence
978-
*seq_of_parameters*. It is also possible to use an
978+
*parameters*. It is also possible to use an
979979
:term:`iterator` yielding parameters instead of a sequence.
980980
Uses the same implicit transaction handling as :meth:`~Cursor.execute`.
981981

0 commit comments

Comments
 (0)