commit | 6b2320fa6bd5190dc72b388de5d5b34aa32b0aec | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Mon Sep 18 16:46:17 2000 +0000 |
committer | Fred Drake <fdrake@acm.org> | Mon Sep 18 16:46:17 2000 +0000 |
tree | 564380a1ca8488092de0a534ee69434097471a9b | |
parent | 6f6d51d050115ad8e807472620586aa95a494148 [diff] |
Richard Mortier <rmm1002@users.sourceforge.net>: Add the constants "printable" and "punctuation" to the string module.
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 @@ digits = '0123456789' hexdigits = digits + 'abcdef' + 'ABCDEF' octdigits = '01234567' +punctuaction = """!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~""" +printable = digits + letters + punctuation + whitespace # Case conversion helpers _idmap = ''