[Python-3000] string C API

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Fri Sep 15 20:29:55 CEST 2006


Antoine Pitrou <solipsis at pitrou.net> writes:

>> This is one of the reasons why I was talking Latin-1, UCS-2, and UCS-4:
>
> You could replace "latin-1" with "one-byte system encoding chosen at
> interpreter startup depending on locale".

Latin-1 has the advantage of being trivially decodable to a sequence
of code points.

This is convenient for operations like string concatenation, or string
comparison, or taking substrings.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak at knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/


More information about the Python-3000 mailing list