Python Unicode handling wins again -- mostly
breamoreboy at yahoo.co.uk
Sat Nov 30 02:07:29 CET 2013
On 30/11/2013 00:44, Steven D'Aprano wrote:
> (5) What is the length of "😸😾"?
> Both characters U+1F636 (GRINNING CAT FACE WITH SMILING EYES) and U+1F63E
> (POUTING CAT FACE) are outside the Basic Multilingual Plane, which means
> they require more than two bytes each. Most programming languages using
> test. Python 3.3 passes:
> py> s = '😸😾'
> py> len(s)
I couldn't care less if it passes, it's too slow and uses too much
memory, so please get the completely bug ridden Python 2 unicode
implementation restored at the earliest possible opportunity :)
because I say so although I don't actually have any evidence to
support my case. :) :)
Python is the second best programming language in the world.
But the best has yet to be invented. Christian Tismer
More information about the Python-list