https://github.com/python/cpython/commit/a0c9f51561ac09928c7823d0cb5f47064dd4268c
commit: a0c9f51561ac09928c7823d0cb5f47064dd4268c
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: hauntsaninja <[email protected]>
date: 2024-09-04T15:36:39-07:00
summary:

[3.12] gh-118508: Clarify which characters are matched by `\s` (GH-119155) 
(#123671)

gh-118508: Clarify which characters are matched by `\s` (GH-119155)

Clarify re syntax
(cherry picked from commit 22fdb8cf899d2dd29f2ac0bf61309af6809719fb)

Co-authored-by: Nice Zombies <[email protected]>

files:
M Doc/library/re.rst

diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 813afcc483a28e..3c9b99c6438a17 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -600,10 +600,9 @@ character ``'$'``.
 
 ``\s``
    For Unicode (str) patterns:
-      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).
+      Matches Unicode whitespace characters (as defined by 
:py:meth:`str.isspace`).
+      This includes ``[ \t\n\r\f\v]``, and also many other characters, for 
example the
+      non-breaking spaces mandated by typography rules in many languages.
 
       Matches ``[ \t\n\r\f\v]`` if the :py:const:`~re.ASCII` flag is used.
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to