We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc2a0f7 commit 6a1faccCopy full SHA for 6a1facc
1 file changed
Doc/library/codecs.rst
@@ -55,9 +55,9 @@ any codec:
55
56
.. function:: charmap_build(string)
57
58
- Return a mapping suitable for decoding a custom single-byte encoding.
59
- Given a :class:`str` *string* of up to 256 characters representing an
60
- encoding table, returns either a compact internal mapping object
+ Return a mapping suitable for encoding with a custom single-byte encoding.
+ Given a :class:`str` *string* of up to 256 characters representing a
+ decoding table, returns either a compact internal mapping object
61
``EncodingMap`` or a :class:`dictionary <dict>` mapping character ordinals
62
to byte values. Raises a :exc:`TypeError` on invalid input.
63
0 commit comments