Re: python3 binascii.hexlify ...

2013-02-09 Thread Cameron Simpson
On 09Feb2013 22:26, Chris Angelico wrote: | On Sat, Feb 9, 2013 at 10:10 PM, Peter Otten <__pete...@web.de> wrote: | > """Return the hexadecimal representation of the binary data. Every byte of | > data is converted into the corresponding 2-digit hex representation. | > """ | > | > makes it pretty

Re: python3 binascii.hexlify ...

2013-02-09 Thread Chris Angelico
On Sat, Feb 9, 2013 at 10:10 PM, Peter Otten <__pete...@web.de> wrote: > """Return the hexadecimal representation of the binary data. Every byte of > data is converted into the corresponding 2-digit hex representation. > """ > > makes it pretty clear that the function is operating on bytes, not str

Re: python3 binascii.hexlify ...

2013-02-09 Thread Peter Otten
Cameron Simpson wrote: > This seems to return a bytes object in Python 3.3.0. I was expecting a > string. The documentation here: > > http://docs.python.org/3/library/binascii.html#binascii.hexlify > > also keeps me expecting a string. Am I missing something? """Return the hexadecimal represe

python3 binascii.hexlify ...

2013-02-09 Thread Cameron Simpson
This seems to return a bytes object in Python 3.3.0. I was expecting a string. The documentation here: http://docs.python.org/3/library/binascii.html#binascii.hexlify also keeps me expecting a string. Am I missing something? Example: [hg/css-venti-bytes+utf8]fleet*2> python3 Python 3.3.0