summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/unicode.rst
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-26 23:41:15 (GMT)
committerGitHub <noreply@github.com>2023-07-26 23:41:15 (GMT)
commit391e03fa05b80d17a14ac88d30c974fa2fa00adb (patch)
treeed5ff8d9e0ac450363daf39fa48c62ef78f5d871 /Doc/c-api/unicode.rst
parent507d8bc39a79e965fa32aa08caa568f3399e1472 (diff)
downloadcpython-391e03fa05b80d17a14ac88d30c974fa2fa00adb.zip
cpython-391e03fa05b80d17a14ac88d30c974fa2fa00adb.tar.gz
cpython-391e03fa05b80d17a14ac88d30c974fa2fa00adb.tar.bz2
gh-107298: Fix Sphinx warnings in the C API doc (#107302)
* Update Doc/tools/.nitignore * Fix BufferedIOBase.write() link in buffer.rst
Diffstat (limited to 'Doc/c-api/unicode.rst')
-rw-r--r--Doc/c-api/unicode.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index ad1d5ed..c7f5f0f 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -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.