[Python-Dev] Re: adding a bytes sequence type to Python

"Martin v. Löwis" martin at v.loewis.de
Sat Aug 14 09:48:45 CEST 2004


M.-A. Lemburg wrote:
> If we switch the binding of 'yyy' to mean unicode('yyy')
> some day, why can't we just continue to use the existing implementation
> for 8-bit strings for b'xxx' (the current implementation is already
> doing the right thing, meaning that it is 8-bit safe regardeless
> of the source code encoding) ?

Not exactly - the current implementation is not safe with respect to
re-encoding source in a different encoding.

Regards,
Martin


More information about the Python-Dev mailing list