Skip to content

Commit 72013ef

Browse files
Address Alex' nitpicks
1 parent c4dde48 commit 72013ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/sqlite3.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ Module functions and constants
323323
Register the *converter* callable to convert SQLite objects of type *typename* into a
324324
Python object of a specific type. The converter is invoked for all SQLite values of type
325325
*typename*. Consult the parameter *detect_types* of
326-
:meth:`Connection.connect` regarding how type detection works.
326+
:meth:`Connection.connect` for information regarding how type detection works.
327327

328328
Note: *typename* and the name of the type in your query are matched in a
329329
case-insensitive manner.
@@ -1220,7 +1220,7 @@ Using adapters to store custom Python types in SQLite databases
12201220
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12211221

12221222
SQLite supports only a limited set of types natively.
1223-
To store custom Python types in SQLite databases, **adapt** them one of the
1223+
To store custom Python types in SQLite databases, **adapt** them to one of the
12241224
basic types supported by SQLite:
12251225
:class:`int`, :class:`float`, :class:`str`, :class:`bytes`, or :const:`None`.
12261226

@@ -1235,7 +1235,7 @@ custom adapter functions.
12351235
Letting your object adapt itself
12361236
""""""""""""""""""""""""""""""""
12371237

1238-
Suppose we have ``Point`` class that represents a pair of coordinates,
1238+
Suppose we have a ``Point`` class that represents a pair of coordinates,
12391239
``x`` and ``y``, in a Cartesian coordinate system.
12401240
The coordinate pair will be stored as a text string in the database,
12411241
using a semicolon to separate the coordinates.
@@ -1268,7 +1268,7 @@ Converting SQLite values to custom Python types
12681268

12691269
Writing an adapter lets you send custom Python types to SQLite. But to make it
12701270
really useful we need to make the Python to SQLite to Python roundtrip work.
1271-
To be able to convert SQLite value to custom Python types, we use _converters_.
1271+
To be able to convert SQLite values to custom Python types, we use _converters_.
12721272

12731273
Let's go back to the :class:`Point` class. We stored the x and y coordinates
12741274
separated via semicolons as strings in SQLite.

0 commit comments

Comments
 (0)