Python - string to hexbytes conversion - HELP!

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

Carsten Gaebler wrote:

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

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?


More information about the Python-list mailing list