[Python-3000] How should the hash digest of a Unicode string be computed?
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Aug 28 08:06:05 CEST 2007
Gregory P. Smith wrote:
> A thought that just occurred to me... Would a PyBUF_CANONICAL flag be
> useful instead of CHARACTERS?
I don't think the buffer API should be allowing for
anything that requires, or could require, the provider
to convert the data into a different form. It should
stick to being a way of getting direct access to the
underlying data, whatever form it's in.
There could be type codes for various representations
of Unicode if desired. But re-encoding should be a
separate step.
--
Greg
More information about the Python-3000
mailing list