[Python-Dev] UCS2/UCS4 default

Adam Olsen rhamph at gmail.com
Fri Jul 4 00:00:56 CEST 2008

On Thu, Jul 3, 2008 at 3:01 PM, Terry Reedy <tjreedy at udel.edu> wrote:
> The premise is the OP's idea that Python should switch to all UCS4 to create
> a more pure ('ideal') situation or the idea that len(s) should count
> codepoints (correct term?) for all builds as a matter of purity even though
> on it would be time-costly on 16-bit builds as a matter of practicality.

Wrong term - code units and code points are equivalent in UTF-16 and
UTF-32.  What you're looking for is unicode scalar values.

Adam Olsen, aka Rhamphoryncus

More information about the Python-Dev mailing list