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

Tim Peters tim@zope.com
Wed, 10 Oct 2001 19:07:39 -0400


[Paul Prescod]
> 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.

So change the docs.  hexlify() hasn't changed, yet the result has.  So long
as Unicode objects support the buffer interface, the question is why they've
changed how they respond to that interface.  This is a question about t#,
not hexlify().