Skip to content

Commit 2b37395

Browse files
gh-94630: Fixup sqlite3 argument spec docs for connection execute* methods (#95319)
1 parent deacf39 commit 2b37395

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
@@ -499,19 +499,19 @@ Connection Objects
499499
make sure to :meth:`commit` before closing
500500
to avoid losing pending changes.
501501

502-
.. method:: execute(sql[, parameters])
502+
.. method:: execute(sql, parameters=(), /)
503503

504504
Create a new :class:`Cursor` object and call
505505
:meth:`~Cursor.execute` on it with the given *sql* and *parameters*.
506506
Return the new cursor object.
507507

508-
.. method:: executemany(sql[, parameters])
508+
.. method:: executemany(sql, parameters, /)
509509

510510
Create a new :class:`Cursor` object and call
511511
:meth:`~Cursor.executemany` on it with the given *sql* and *parameters*.
512512
Return the new cursor object.
513513

514-
.. method:: executescript(sql_script)
514+
.. method:: executescript(sql_script, /)
515515

516516
Create a new :class:`Cursor` object and call
517517
:meth:`~Cursor.executescript` on it with the given *sql_script*.
@@ -981,11 +981,11 @@ Cursor Objects
981981
a transaction is implicitly opened before executing *sql*.
982982

983983

984-
.. method:: executemany(sql, seq_of_parameters, /)
984+
.. method:: executemany(sql, parameters, /)
985985

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

0 commit comments

Comments
 (0)