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

Barry A. Warsaw barry@zope.com
Thu, 11 Oct 2001 17:24:40 -0400


>>>>> "M" == M  <mal@lemburg.com> writes:

    M> Well, the question is whether hexlify() should use "t#" which
    M> is specifically intended to return *character* data and not
    M> "s#" which means *binary* data. I think the latter is more
    M> appropriate for hexlify() as its intention is to encode binary
    M> data.

And I think I agree, even though that /could/ break code.  Then again,
maybe Paul's suggestion that hexlify() should reject Unicode strings
is the better approach.

-Barry