June 1, 2023
4:18 p.m.
On Thu, 1 Jun 2023 at 15:09, Antonio Carlos Jorge Patricio < antoniocjp@gmail.com> wrote:
I suggest including a simple str variable in unicodedata module to mirror string.whitespace, so it would contain all characters defined in CPython function [_PyUnicode_IsWhitespace()]( https://github.com/python/cpython/blob/main/Objects/unicodetype_db.h#L6314) so that:
# existent string.whitespace = ' \t\n\r\x0b\x0c'
# proposed unicodedata.whitespace = ' \t\n\x0b\x0c\r\x1c\x1d\x1e\x1f\x85\xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000'
What's the use case? I can't think of a single occasion when I would have found this useful. Paul