[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

Guido van Rossum report at bugs.python.org
Sat Aug 27 05:26:21 CEST 2011


Guido van Rossum <guido at python.org> added the comment:

To me, making (default) iteration deviate from indexing is anathema.

However, there is nothing wrong with providing a library function that
takes a string and returns an iterator that iterates over code points,
joining surrogate pairs as needed. You could even have one that
iterates over characters (I think Tom calls them graphemes), if that
is well-defined and useful.

----------
title: Python lib re cannot handle Unicode properly due to	narrow/wide bug -> Python lib re cannot handle Unicode properly due to narrow/wide bug

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12729>
_______________________________________


More information about the Python-bugs-list mailing list