[Python-Dev] bytes.tohex in Python 3

Matt Giuca matt.giuca at gmail.com
Sat Aug 9 20:41:33 CEST 2008

Hi Guido,

Ah yes Martin just pointed this out on the tracker. I think it would still
be worthwhile having the tohex method, if not just to counter the obscurity
of the binascii.hexlify function (but for other reasons too).

Also there's an issue with all the functions in binascii - they return
bytes, not strings. Is this an oversight? (My version of tohex returns a

See tracker:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20080810/a151a4d0/attachment.htm>

More information about the Python-Dev mailing list