Python - string to hexbytes conversion - HELP!

Hans Nowak wurmy at earthlink.net
Thu Dec 6 21:02:51 EST 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