From fd64c5908fd3a4d6f36f30a8304147245f82cd7b Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 18 Sep 2000 19:38:11 +0000 Subject: [PATCH] Fix serious typo! Add the new constants to the module docstring. --- Lib/string.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/string.py b/Lib/string.py index 8b6343a4ed..bf2811c6b4 100644 --- a/Lib/string.py +++ b/Lib/string.py @@ -14,6 +14,8 @@ 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 """ @@ -25,7 +27,7 @@ letters = lowercase + uppercase digits = '0123456789' hexdigits = digits + 'abcdef' + 'ABCDEF' octdigits = '01234567' -punctuaction = """!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~""" +punctuation = """!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~""" printable = digits + letters + punctuation + whitespace # Case conversion helpers -- 2.40.0