Show hex value for all bytes, even when ASCII characters are present

After installing my package all-escapes there will be a new codec available for this usage.

>>> b = bytes([10,67,128])
>>> print(b.decode("all-escapes"))
\x0a\x43\x80

Leave a Comment