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 367bdf2 commit d748c22Copy full SHA for d748c22
1 file changed
Doc/library/codecs.rst
@@ -56,8 +56,9 @@ any codec:
56
.. function:: charmap_build(string)
57
58
Return a mapping suitable for decoding a custom single-byte encoding.
59
- Given a string *string* of up to 256 characters representing an encoding
60
- table, returns a dictionary mapping character ordinals to byte values.
+ Given a :class:`str` *string* of up to 256 characters representing an
+ encoding table, returns either a compact internal mapping object or a
61
+ dictionary mapping character ordinals to byte values.
62
Raises a :exc:`TypeError` on invalid input.
63
64
The full details for each codec can also be looked up directly:
0 commit comments