Grapheme clusters, a.k.a.real characters

Chris Angelico rosuav at gmail.com
Mon Jul 17 00:38:30 EDT 2017


On Mon, Jul 17, 2017 at 2:10 PM, Rustom Mody <rustompmody at gmail.com> wrote:
> Hint1: Ask your grandmother whether unicode's notion of character makes sense.
> Ask 10 gmas from 10 language-L's
> Hint2: When in doubt gma usually is right

Often, but definitely not always. For instance, your grandmother
probably wouldn't think of "newline" as a character. Quite possibly
wouldn't count space, either. On the other hand, I'm pretty sure my
grandmothers would have counted Sherlock Holmes as a character.

ChrisA



More information about the Python-list mailing list