Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:
There's a discrepancy between the string.whitespace constant and actual whitespace as tested by the str.isspace() method. I've found five ASCII whitespace characters (as reported by isspace) which aren't in the string.whitespace constant, and 18 non-ASCII whitespace characters which aren't in the string. The good news is that there are no non-whitespace characters in the constant :-) The non-ASCII ones probably don't matter, as string.whitespace is documented as only being ASCII. But the following are missing: U+001C, U+001D, U+001E, U+001F, U+0085 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39418> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com