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
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
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
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