mirror of
https://github.com/python/cpython.git
synced 2025-10-14 18:59:46 +00:00
[3.12] gh-107298: Fix Sphinx warnings in the C API doc (GH-107302) (GH-107375)
(cherry picked from commit 391e03fa05
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
4f72a9a2e0
commit
ef7422a1b9
12 changed files with 29 additions and 37 deletions
|
@ -1214,7 +1214,7 @@ This codec is special in that it can be used to implement many different codecs
|
|||
(and this is in fact what was done to obtain most of the standard codecs
|
||||
included in the :mod:`!encodings` package). The codec uses mappings to encode and
|
||||
decode characters. The mapping objects provided must support the
|
||||
:meth:`__getitem__` mapping interface; dictionaries and sequences work well.
|
||||
:meth:`~object.__getitem__` mapping interface; dictionaries and sequences work well.
|
||||
|
||||
These are the mapping codec APIs:
|
||||
|
||||
|
@ -1257,7 +1257,7 @@ The following codec API is special in that maps Unicode to Unicode.
|
|||
The mapping table must map Unicode ordinal integers to Unicode ordinal integers
|
||||
or ``None`` (causing deletion of the character).
|
||||
|
||||
Mapping tables need only provide the :meth:`__getitem__` interface; dictionaries
|
||||
Mapping tables need only provide the :meth:`~object.__getitem__` interface; dictionaries
|
||||
and sequences work well. Unmapped character ordinals (ones which cause a
|
||||
:exc:`LookupError`) are left untouched and are copied as-is.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue