[issue13391] string.strip Does Not Remove Zero-Width-Space (ZWSP)
Ezio Melotti
report at bugs.python.org
Mon Nov 14 17:30:43 CET 2011
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
I think those shouldn't be considered whitespace, so they shouldn't be stripped either.
Even if _PyUnicode_IsWhitespace doesn't match exactly the Unicode definition of White_Space, they both agree that ZWSP and ZWNBSP are not whitespace. ZWNBSP is also used as BOM, and its usage as a zero-width space has been deprecated in favor of WORD JOINER (U+2060). Similarly WJ is not considered a whitespace.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13391>
_______________________________________
More information about the Python-bugs-list
mailing list