New GitHub issue #118508 from jeremyredhead:<br>

<hr>

<pre>
# Documentation

Currently, and since 3.0 it seems, it simply states that `\s` "Matches Unicode whitespace characters (which includes `[ \t\n\r\f\v]`, and also many other characters, for example the non-breaking spaces mandated by typography rules in many languages)."

But "Unicode whitespace characters" seems awfully vague. Exactly which [General_Category value] does that correspond to? Space_Separator (Zs)? Separator (Z)? Some Python-specific selection of ""Unicode whitespace characters""? It's not entirely clear.

The 2.7 docs were better, stating that "If [`UNICODE`](https://docs.python.org/2.7/library/re.html#re.UNICODE) is set, this will match the characters `[ \t\n\r\f\v]` plus whatever is classified as space in the Unicode character properties database."

I'd like to believe that Python 3.x uses the exact same definition for `\s` as 2.7 did, and that therefore I already have the answer to my question. I'd like to believe a lot of things. But computers don't run on belief(s). 

No one should have to resort to digging thru the source code for the answer to such a simple but important question.

P.S. I did try searching the interwebs for an answer to "which whitespace is matched by \s in python". Unfortunately search engines seem entirely unwilling to help. Perhaps no one else knows or wants to know. That's a shame.

[General_Category value]: https://unicode.org/reports/tr44/#General_Category_Values
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/118508">View on GitHub</a>
<p>Labels: docs</p>
<p>Assignee: </p>