From: Fred Drake Date: Mon, 18 Sep 2000 16:46:17 +0000 (+0000) Subject: Richard Mortier : X-Git-Tag: v2.0b2~220 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b2320fa6bd5190dc72b388de5d5b34aa32b0aec;p=thirdparty%2FPython%2Fcpython.git Richard Mortier : Add the constants "printable" and "punctuation" to the string module. --- diff --git a/Lib/string.py b/Lib/string.py index 6570fef3c20c..8b6343a4ed60 100644 --- a/Lib/string.py +++ b/Lib/string.py @@ -25,6 +25,8 @@ letters = lowercase + uppercase digits = '0123456789' hexdigits = digits + 'abcdef' + 'ABCDEF' octdigits = '01234567' +punctuaction = """!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~""" +printable = digits + letters + punctuation + whitespace # Case conversion helpers _idmap = ''