Python - string to hexbytes conversion - HELP!

Hans Nowak wurmy at earthlink.net
Fri Dec 7 03:02:51 CET 2001


Carsten Gaebler wrote:

> >>> import binascii
> >>> binascii.unhexlify("01234567")
> '\x01#Eg'

<clueless>
OK, this one has been puzzling me for a while... why are the
functions in binascii called 'hexlify' and 'unhexlify'? Why
not 'hexify'? Where does the L come from?
</clueless>

--Hans



More information about the Python-list mailing list