[Python-ideas] unicodedata.itergraphemes (or str.itergraphemes / str.graphemes)

David Kendal me at dpk.io
Wed Jul 10 03:06:13 CEST 2013


On 10 Jul 2013, at 00:40, Joshua Landau <joshua at landau.ws> wrote:

> I've only loosely followed this thread but that sounds like a really
> weird idea to me. The standard is to have an object with the
> properties you want that can be coerced to an iterator through its
> __iter__ method. Maybe that's what you meant, though.

Well, right. I meant "a new type" like dict.keys() and dict.values() are "view types" on a dictionary that provide iterator interfaces. This would just be a "grapheme view" on a string.

dpk



More information about the Python-ideas mailing list