From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 19 Aug 2022 07:49:39 +0000 (-0700) Subject: Doc: Use consistent markup for example Point class in sqlite3 (GH-96095) X-Git-Tag: v3.10.7~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d52834d5f57a1b6ac3249fc237bb34c7b2f5ca3e;p=thirdparty%2FPython%2Fcpython.git Doc: Use consistent markup for example Point class in sqlite3 (GH-96095) (cherry picked from commit 303ef0913e5b80adbe63def41829bff5effab6a0) Co-authored-by: C.A.M. Gerlach --- diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index d11fb18add61..3dff0293bf29 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -1274,7 +1274,7 @@ registering custom adapter functions. Letting your object adapt itself """""""""""""""""""""""""""""""" -Suppose we have a ``Point`` class that represents a pair of coordinates, +Suppose we have a :class:`!Point` class that represents a pair of coordinates, ``x`` and ``y``, in a Cartesian coordinate system. The coordinate pair will be stored as a text string in the database, using a semicolon to separate the coordinates. @@ -1305,11 +1305,11 @@ values. To be able to convert *from* SQLite values *to* custom Python types, we use *converters*. -Let's go back to the :class:`Point` class. We stored the x and y coordinates +Let's go back to the :class:`!Point` class. We stored the x and y coordinates separated via semicolons as strings in SQLite. First, we'll define a converter function that accepts the string as a parameter -and constructs a :class:`Point` object from it. +and constructs a :class:`!Point` object from it. .. note::