PyDocs

Nav

Binary Data Services

charmap_build

codecs

function
  • charmap_build(string)
Return a mapping suitable for encoding with a custom single-byte encoding. Given a str string of up to 256 characters representing a decoding table, returns either a compact internal mapping object EncodingMap or a dictionary mapping character ordinals to byte values. Raises a TypeError on invalid input.
0 Examples
No examples for codecs/charmap_build.
See Also
No see-alsos for codecs/charmap_build
0 Notes
No notes for charmap_build