[issue13391] string.strip Does Not Remove Zero-Width-Space (ZWSP)

Martin v. Löwis report at bugs.python.org
Tue Nov 15 23:10:38 CET 2011


Martin v. Löwis <martin at v.loewis.de> added the comment:

> Thus strip and isspace are now unusable methods in Python for common use cases.

Please recognize that you haven't demonstrated this at all. U+200B is
*not* a character that is common, not even remotely. It's a rare,
infrequent, unused character. In addition, in the common use case
of string.strip (i.e. get rid of leading an trailing white space for
rendering purposes), keeping it causes no harm since it's zero-width.

If you disagree with the resolution of this issue, you will have to
write a PEP.

----------

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


More information about the Python-bugs-list mailing list