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

Jeremy Hylton jeremy@zope.com
Thu, 11 Oct 2001 13:31:08 -0400 (EDT)


>>>>> "PP" == Paul Prescod <paul@ActiveState.com> writes:

  PP> Translating the data before handing it to the user violates the
  PP> "raw"-ness of the byte-oriented format and the principle about
  PP> not needing to copy it. It behaves quite differently than other
  PP> implementations of getcharbuffer.

As far as I can tell, all other implementations of getcharbuffer are
exact duplicates of getreadbuffer.  If the Unicode object doesn't have
an appropriate implementation of getcharbuffer, one wonders why the
method exists at all:  In every case it would be redundant or
incorrect. 

Jeremy