diff --git a/Doc/library/string.rst b/Doc/library/string.rst index 63caa4cf3f3..37704b0d4de 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -71,7 +71,7 @@ The constants defined in this module are: .. data:: whitespace - A string containing all characters that are considered whitespace. + A string containing all ASCII characters that are considered whitespace. This includes the characters space, tab, linefeed, return, formfeed, and vertical tab. diff --git a/Lib/string.py b/Lib/string.py index 20441552db7..ea0d359002f 100644 --- a/Lib/string.py +++ b/Lib/string.py @@ -2,15 +2,15 @@ Public module variables: -whitespace -- a string containing all characters considered whitespace -lowercase -- a string containing all characters considered lowercase letters -uppercase -- a string containing all characters considered uppercase letters -letters -- a string containing all characters considered letters -digits -- a string containing all characters considered decimal digits -hexdigits -- a string containing all characters considered hexadecimal digits -octdigits -- a string containing all characters considered octal digits -punctuation -- a string containing all characters considered punctuation -printable -- a string containing all characters considered printable +whitespace -- a string containing all ASCII whitespace +ascii_lowercase -- a string containing all ASCII lowercase letters +ascii_uppercase -- a string containing all ASCII uppercase letters +ascii_letters -- a string containing all ASCII letters +digits -- a string containing all ASCII decimal digits +hexdigits -- a string containing all ASCII hexadecimal digits +octdigits -- a string containing all ASCII octal digits +punctuation -- a string containing all ASCII punctuation characters +printable -- a string containing all ASCII characters considered printable """