Skip to content

Commit 90675b6

Browse files
committed
Address Serhiy's review
1 parent 7320499 commit 90675b6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Doc/c-api/tuple.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ type.
165165
166166
Describes a field of a struct sequence. As a struct sequence is modeled as a
167167
tuple, all fields are typed as :c:expr:`PyObject*`. The index in the
168-
``fields`` array of the :c:type:`PyStructSequence_Desc` determines which
168+
:attr:`fields` array of the :c:type:`PyStructSequence_Desc` determines which
169169
field of the struct sequence is described.
170170
171171
+-----------+------------------+-----------------------------------------+

Doc/c-api/type.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ The following functions and structs are used to create
477477
* :c:member:`~PyTypeObject.tp_vectorcall_offset`
478478
(see :ref:`PyMemberDef <pymemberdef-offsets>`)
479479
480-
Setting :c:data:`!Py_tp_bases` or :c:data:`!Py_tp_base` may be
480+
Setting :c:data:`Py_tp_bases` or :c:data:`Py_tp_base` may be
481481
problematic on some platforms.
482482
To avoid issues, use the *bases* argument of
483483
:c:func:`PyType_FromSpecWithBases` instead.

Doc/c-api/unicode.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ This codec is special in that it can be used to implement many different codecs
12071207
(and this is in fact what was done to obtain most of the standard codecs
12081208
included in the :mod:`!encodings` package). The codec uses mappings to encode and
12091209
decode characters. The mapping objects provided must support the
1210-
:meth:`!__getitem__` mapping interface; dictionaries and sequences work well.
1210+
:meth:`~object.__getitem__` mapping interface; dictionaries and sequences work well.
12111211
12121212
These are the mapping codec APIs:
12131213
@@ -1250,7 +1250,7 @@ The following codec API is special in that maps Unicode to Unicode.
12501250
The mapping table must map Unicode ordinal integers to Unicode ordinal integers
12511251
or ``None`` (causing deletion of the character).
12521252
1253-
Mapping tables need only provide the :meth:`!__getitem__` interface; dictionaries
1253+
Mapping tables need only provide the :meth:`~object.__getitem__` interface; dictionaries
12541254
and sequences work well. Unmapped character ordinals (ones which cause a
12551255
:exc:`LookupError`) are left untouched and are copied as-is.
12561256

0 commit comments

Comments
 (0)