From 6b2320fa6bd5190dc72b388de5d5b34aa32b0aec Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 18 Sep 2000 16:46:17 +0000 Subject: Richard Mortier : Add the constants "printable" and "punctuation" to the string module. --- Lib/string.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/string.py b/Lib/string.py index 6570fef..8b6343a 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 = '' -- cgit v0.12