[Python-Dev] Bug or feature? Unicode vs t#

Paul Prescod paul@ActiveState.com
Wed, 10 Oct 2001 15:53:30 -0700


Tim Peters wrote:
> 
>...
> 
> In 2.1.1, it's '61' instead.  I don't know what ought to happen, but 2.1.1
> suprised me less.  binascii inherits its view of the argument via
> PyArg_ParseTuple's t# code.

The documentation for hexlify says: "Return the hexadecimal
representation of the binary data." I don't think it should accept a
Unicode string as input at all. 

 Paul Prescod