[issue36502] The behavior of str.isspace() for U+00A0 and U+202F is different from what is documented

amazon kurodaju report at bugs.python.org
Tue Apr 2 10:32:57 EDT 2019


amazon kurodaju <kurodaju.amazon at gmail.com> added the comment:

Do you mean read the statement as follows?

Whitespace characters are characters that satisfy either one of:
1. Character type is "Other"
2. Character type is "Separator"
3. Characters with "WS", "B", or "S" bidirectional property

If that's the case, this is also not reflect the behavior as most of characters in "Other" are not whitespace characters and in fact str.isspace() returns False for those characters.

----------
nosy: +amazon kurodaju

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36502>
_______________________________________


More information about the Python-bugs-list mailing list