What’s the correct way to convert bytes to a hex string in Python 3?

What’s the correct way to convert bytes to a hex string in Python 3?

I see claims of a bytes.hex method, bytes.decode codecs, and have tried other possible functions of least astonishment without avail. I just want my bytes as hex!

9 Answers
9

Leave a Comment