@@ -1442,6 +1442,14 @@ Cursor objects
14421442 and there is no open transaction,
14431443 a transaction is implicitly opened before executing *sql *.
14441444
1445+ .. deprecated-removed :: 3.12 3.14
1446+
1447+ :exc: `DeprecationWarning ` is emitted if
1448+ :ref: `named placeholders <sqlite3-placeholders >` are used
1449+ and *parameters * is a sequence instead of a :class: `dict `.
1450+ Starting with Python 3.14, :exc: `ProgrammingError ` will
1451+ be raised instead.
1452+
14451453 Use :meth: `executescript ` to execute multiple SQL statements.
14461454
14471455 .. method :: executemany(sql, parameters, /)
@@ -1476,6 +1484,15 @@ Cursor objects
14761484 # cur is an sqlite3.Cursor object
14771485 cur.executemany("INSERT INTO data VALUES(?)", rows)
14781486
1487+ .. deprecated-removed :: 3.12 3.14
1488+
1489+ :exc: `DeprecationWarning ` is emitted if
1490+ :ref: `named placeholders <sqlite3-placeholders >` are used
1491+ and the items in *parameters * are sequences
1492+ instead of :class: `dict `\s .
1493+ Starting with Python 3.14, :exc: `ProgrammingError ` will
1494+ be raised instead.
1495+
14791496 .. method :: executescript(sql_script, /)
14801497
14811498 Execute the SQL statements in *sql_script *.
@@ -1971,7 +1988,7 @@ question marks (qmark style) or named placeholders (named style).
19711988For the qmark style, *parameters * must be a
19721989:term: `sequence ` whose length must match the number of placeholders,
19731990or a :exc: `ProgrammingError ` is raised.
1974- For the named style, *parameters * should be
1991+ For the named style, *parameters * must be
19751992an instance of a :class: `dict ` (or a subclass),
19761993which must contain keys for all named parameters;
19771994any extra items are ignored.
0 commit comments