Module Expr Str Import alias Import alias TryExcept body Expr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Return TupleLoad Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad Num comprehension NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Return TupleLoad Call NameLoad Call AttributeLoad Str attr GeneratorExp Call AttributeLoad Str attr Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Return Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad Num comprehension NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Return Call NameLoad Call AttributeLoad Str attr GeneratorExp Call AttributeLoad Str attr Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults Str body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad BinOpBitAnd NameLoad Num Assign NameStore Num orelse Assign NameStore BinOpAdd Num BinOpLShift NameLoad Num orelse If CompareEq NameLoad Str body If BoolOpAnd NameLoad CompareEq AttributeLoad NameLoad attr Str body Raise Call NameLoad Str Assign NameStore Num orelse If CompareEq AttributeLoad NameLoad attr Str body Raise Call NameLoad BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call NameLoad Call AttributeLoad Str attr GeneratorExp Call AttributeLoad Str attr Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr body Expr Str decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr body Expr Str decorator_list FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list
N/A N/A Python 'hex' Codec - 2-digit hex with spaces content transfer encoding.

Encode and decode may be a bit missleading at first sight...

The textual representation is a hex dump: e.g. "40 41"
The "encoded" data of this is the binary form, e.g. b"@A"

Therefore decoding is binary to text and thus converting binary data to hex dump.

 N/A codecs N/A serial N/A N/A N/A unicode N/A N/A N/A N/A NameError AttributeError N/A N/A unicode str N/A HEXDIGITS 0123456789ABCDEF hex_encode N/A N/A data errors N/A strict N/A N/A '40 41 42' -> b'@ab' N/A N/A N/A N/A serial to_bytes N/A N/A int h 16 N/A h N/A N/A data split N/A len data N/A hex_decode N/A N/A data errors N/A strict N/A N/A b'@ab' -> '40 41 42' N/A N/A N/A unicode N/A N/A join N/A N/A N/A {:02X}  format N/A ord b N/A b N/A N/A serial iterbytes data N/A len data N/A Codec N/A N/A codecs Codec N/A encode N/A N/A self data errors N/A strict N/A N/A '40 41 42' -> b'@ab' N/A N/A N/A serial to_bytes N/A N/A int h 16 N/A h N/A N/A data split N/A decode N/A N/A self data errors N/A strict N/A N/A b'@ab' -> '40 41 42' N/A N/A unicode N/A N/A join N/A N/A N/A {:02X}  format N/A ord b N/A b N/A N/A serial iterbytes data N/A N/A IncrementalEncoder N/A N/A codecs IncrementalEncoder N/A N/A Incremental hex encoder __init__ N/A N/A self errors N/A strict N/A N/A N/A self errors errors N/A N/A self state 0 N/A reset N/A N/A self N/A N/A N/A N/A self state 0 N/A getstate N/A N/A self N/A N/A N/A N/A self state N/A setstate N/A N/A self state N/A N/A N/A N/A self state state N/A encode N/A N/A self data final N/A False N/A N/A         Incremental encode, keep track of digits and emit a byte when a pair
        of hex digits is found. The space is optional unless the error
        handling is defined to be 'strict'.
         N/A state N/A self state N/A encoded N/A N/A c N/A N/A data upper N/A N/A N/A c HEXDIGITS N/A N/A z N/A N/A HEXDIGITS index c N/A state N/A N/A N/A N/A encoded append N/A z N/A state 240 N/A state 0 N/A N/A state N/A 256 N/A z 4 N/A N/A N/A c N/A N/A N/A state N/A N/A self errors strict N/A N/A N/A UnicodeError odd number of hex digits N/A state 0 N/A N/A N/A N/A self errors strict N/A N/A N/A UnicodeError N/A non-hex digit found: %r c N/A N/A self state state N/A N/A N/A serial to_bytes encoded N/A N/A IncrementalDecoder N/A N/A codecs IncrementalDecoder N/A N/A Incremental decoder decode N/A N/A self data final N/A False N/A N/A N/A unicode N/A N/A join N/A N/A N/A {:02X}  format N/A ord b N/A b N/A N/A serial iterbytes data N/A N/A StreamWriter N/A Codec N/A codecs StreamWriter N/A N/A Combination of hexlify codec and StreamWriter N/A StreamReader N/A Codec N/A codecs StreamReader N/A N/A Combination of hexlify codec and StreamReader N/A getregentry N/A N/A N/A N/A N/A encodings module API N/A N/A N/A codecs CodecInfo name hexlify encode hex_encode decode hex_decode incrementalencoder IncrementalEncoder incrementaldecoder IncrementalDecoder streamwriter StreamWriter streamreader StreamReader N/A