[Python-Dev] Bug or feature? Unicode vs t# (original) (raw)
Paul Prescod paulp@ActiveState.com
Fri, 12 Oct 2001 01:48:11 -0700
- Previous message: [Python-Dev] Bug or feature? Unicode vs t#
- Next message: [Python-Dev] Bug or feature? Unicode vs t#
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"M.-A. Lemburg" wrote:
... Since hexlify() uses a parser marker which does not involve a type check, there's no way to have it reject Unicode objects.
Well, we do have the option of changing the code!
We could have hexlify check that its argument type is not Unicode or, more likely, remove the buffer interface from Unicode objects. I think that's the logical outcome of Guido's belief that Python programmers do NOT need access to the internal representation of string objects. The buffer interface seems to be only in existence to give access to internal representations of objects.
Paul Prescod
- Previous message: [Python-Dev] Bug or feature? Unicode vs t#
- Next message: [Python-Dev] Bug or feature? Unicode vs t#
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]