Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7f45ae8

Browse files
gh-94630: Update sqlite3 docs with positional-only and keyword-only symbols (GH-94631)
(cherry picked from commit9498860)Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
1 parent7e3b6af commit7f45ae8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

‎Doc/library/sqlite3.rst‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ Module functions and constants
304304
Added the ``sqlite3.connect/handle`` auditing event.
305305

306306

307-
..function::register_converter(typename, converter)
307+
..function::register_converter(typename, converter, /)
308308

309309
Register the *converter* callable to convert SQLite objects of type
310310
*typename* into a Python object of a specific type.
@@ -318,7 +318,7 @@ Module functions and constants
318318
case-insensitively.
319319

320320

321-
..function::register_adapter(type, adapter)
321+
..function::register_adapter(type, adapter, /)
322322

323323
Register an *adapter* callable to adapt the Python type *type* into an
324324
SQLite type.
@@ -340,7 +340,7 @@ Module functions and constants
340340
..literalinclude::../includes/sqlite3/complete_statement.py
341341

342342

343-
..function::enable_callback_tracebacks(flag)
343+
..function::enable_callback_tracebacks(flag, /)
344344

345345
By default you will not get any tracebacks in user-defined functions,
346346
aggregates, converters, authorizer callbacks etc. If you want to debug them,
@@ -445,7 +445,7 @@ Connection Objects
445445
..literalinclude::../includes/sqlite3/md5func.py
446446

447447

448-
..method::create_aggregate(name, n_arg, aggregate_class)
448+
..method::create_aggregate(name,/,n_arg, aggregate_class)
449449

450450
Creates a user-defined aggregate function.
451451

@@ -546,7 +546,7 @@ Connection Objects
546546
..versionadded::3.3
547547

548548

549-
..method::enable_load_extension(enabled)
549+
..method::enable_load_extension(enabled, /)
550550

551551
This routine allows/disallows the SQLite engine to load SQLite extensions
552552
from shared libraries. SQLite extensions can define new functions,
@@ -564,7 +564,7 @@ Connection Objects
564564

565565
..literalinclude::../includes/sqlite3/load_extension.py
566566

567-
..method::load_extension(path)
567+
..method::load_extension(path, /)
568568

569569
This routine loads an SQLite extension from a shared library. You have to
570570
enable extension loading with:meth:`enable_load_extension` before you can
@@ -703,7 +703,7 @@ Cursor Objects
703703
..index::single: ? (question mark); in SQL statements
704704
..index::single: : (colon); in SQL statements
705705

706-
..method::execute(sql[, parameters])
706+
..method::execute(sql, parameters=(), /)
707707

708708
Execute an SQL statement. Values may be bound to the statement using
709709
:ref:`placeholders<sqlite3-placeholders>`.
@@ -719,7 +719,7 @@ Cursor Objects
719719
a transaction is implicitly opened before executing *sql*.
720720

721721

722-
..method::executemany(sql, seq_of_parameters)
722+
..method::executemany(sql, seq_of_parameters, /)
723723

724724
Execute a:ref:`parameterized<sqlite3-placeholders>` SQL command
725725
against all parameter sequences or mappings found in the sequence
@@ -734,7 +734,7 @@ Cursor Objects
734734
..literalinclude::../includes/sqlite3/executemany_2.py
735735

736736

737-
..method::executescript(sql_script)
737+
..method::executescript(sql_script, /)
738738

739739
Execute multiple SQL statements at once.
740740
If there is a pending transaciton,
@@ -784,11 +784,11 @@ Cursor Objects
784784
The cursor will be unusable from this point forward; a:exc:`ProgrammingError`
785785
exception will be raised if any operation is attempted with the cursor.
786786

787-
..method::setinputsizes(sizes)
787+
..method::setinputsizes(sizes, /)
788788

789789
Required by the DB-API. Does nothing in:mod:`sqlite3`.
790790

791-
..method::setoutputsize(size [, column])
791+
..method::setoutputsize(size, column=None, /)
792792

793793
Required by the DB-API. Does nothing in:mod:`sqlite3`.
794794

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp