[I18n-sig] Pre-PEP: Proposed Python Character Model
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Thu, 8 Feb 2001 00:59:37 +0100
> >> 1. Python should have a single string type.
> >
> >I disagree. There should be a character string type and a byte string
> >type, at least. I would agree that a single character string type is
> >desirable.
>
> There is already a large body of code that mixes text and binary data
> in the same type. If we have separate text/binary types, then we need
> to plan a transition period to allow code to distinguish between the
> two uses.
I think the current Unicode implementation has this property: Unicode
is the type for representing character strings; the string type the
one for representing byte strings.
Regards,
Martin