mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
gh-107298: Fix Sphinx warnings in the C API doc (#107302)
* Update Doc/tools/.nitignore * Fix BufferedIOBase.write() link in buffer.rst
This commit is contained in:
parent
507d8bc39a
commit
391e03fa05
12 changed files with 26 additions and 33 deletions
|
|
@ -1207,7 +1207,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:
|
||||
|
||||
|
|
@ -1250,7 +1250,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