tertius wrote:
Hi,

Is there a builtin function that will enable me to display the hex notation of a given binary string? (example below)

Does this help:

>>> "hello".encode("hex")
'68656c6c6f'
>>> "deadbeef".decode("hex")
'\xde\xad\xbe\xef'

?

--Irmen
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to