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 8594d2c commit f6b9710Copy full SHA for f6b9710
Doc/library/codecs.rst
@@ -53,6 +53,14 @@ any codec:
53
:exc:`UnicodeDecodeError`). Refer to :ref:`codec-base-classes` for more
54
information on codec error handling.
55
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 either a compact internal mapping object or a dictionary
61
+ mapping character ordinals to byte values. Raises a :exc:`TypeError`
62
+ on invalid input.
63
64
The full details for each codec can also be looked up directly:
65
66
.. function:: lookup(encoding, /)
0 commit comments