[pypy-issue] [issue757] unicode.isspace() incorrect

Friedel Wolff tracker at bugs.pypy.org
Sun Jun 19 16:45:06 CEST 2011

New submission from Friedel Wolff <friedel at translate.org.za>:

There is a difference in behaviour between cpython (I have 2.6.1 here) and
pypy1.5 in the implementation of unicode.isspace(). It can be seen like this:

python -c 'print u"\u200b".isspace()'

pypy  -c 'print u"\u200b".isspace()'

The character in involved is ZWSP (zero width space) which isn't indicated as a
space character in my reading of Unicode, so this could be a bug in cpython -
I'm just not sure if they meant .isspace() to map to these Unicode properties.

messages: 2648
nosy: fwolff, pypy-issue
priority: bug
status: unread
title: unicode.isspace() incorrect

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list