osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Micro Python -- a lean and efficient implementation of Python 3


On Jun 4, 2014, at 4:01 AM, Tim Chase <python.list at tim.thechases.com> wrote:

> If you use UTF-8 for everything

It seems to me, that increasingly other libraries (C, etc), use utf8 as the preferred string interchange format. It?s universal, not prone to endian issues, etc. So one *advantage* you gain for using utf8 internally, is any time you need to hand a string to an external thing, it?s just ready. An app that reserves its internal string processing to streaming based ones but has to to hand strings to external libraries a lot (e.g. cairo) might actually benefit using utf8 internally, because a) it?s not doing the linear search for the odd character address and b) it no longer needs to decode/encode every time it sends or receives a string to an external library.