#14236: mention Unicode whitespace in \s documentation.
authorEzio Melotti <ezio.melotti@gmail.com>
Sun, 29 Apr 2012 05:23:25 +0000 (08:23 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Sun, 29 Apr 2012 05:23:25 +0000 (08:23 +0300)
Lib/re.py

index 3fd59df8bc8e750602e8b1cc8433ee69b07e2366..45de5a2ffa8c546c0461f12150308f900dbc29f9 100644 (file)
--- a/Lib/re.py
+++ b/Lib/re.py
@@ -69,7 +69,10 @@ resulting RE will match the second character.
              In string patterns without the ASCII flag, it will match the whole
              range of Unicode digits.
     \D       Matches any non-digit character; equivalent to [^\d].
-    \s       Matches any whitespace character; equivalent to [ \t\n\r\f\v].
+    \s       Matches any whitespace character; equivalent to [ \t\n\r\f\v] in
+             bytes patterns or string patterns with the ASCII flag.
+             In string patterns without the ASCII flag, it will match the whole
+             range of Unicode whitespace characters.
     \S       Matches any non-whitespace character; equiv. to [^ \t\n\r\f\v].
     \w       Matches any alphanumeric character; equivalent to [a-zA-Z0-9_]
              in bytes patterns or string patterns with the ASCII flag.