Skip to content

Commit 7e7a570

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 657efca commit 7e7a570

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/library/sqlite3.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -413,19 +413,19 @@ Connection Objects
413413
make sure to :meth:`commit` before closing
414414
to avoid losing pending changes.
415415

416-
.. method:: execute(sql[, parameters])
416+
.. method:: execute(sql, parameters=(), /)
417417

418418
Create a new :class:`Cursor` object and call
419419
:meth:`~Cursor.execute` on it with the given *sql* and *parameters*.
420420
Return the new cursor object.
421421

422-
.. method:: executemany(sql[, parameters])
422+
.. method:: executemany(sql, parameters, /)
423423

424424
Create a new :class:`Cursor` object and call
425425
:meth:`~Cursor.executemany` on it with the given *sql* and *parameters*.
426426
Return the new cursor object.
427427

428-
.. method:: executescript(sql_script)
428+
.. method:: executescript(sql_script, /)
429429

430430
Create a new :class:`Cursor` object and call
431431
:meth:`~Cursor.executescript` on it with the given *sql_script*.
@@ -774,11 +774,11 @@ Cursor Objects
774774
a transaction is implicitly opened before executing *sql*.
775775

776776

777-
.. method:: executemany(sql, seq_of_parameters, /)
777+
.. method:: executemany(sql, parameters, /)
778778

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

0 commit comments

Comments
 (0)