diff options
author | Fred Drake <fdrake@acm.org> | 2000-09-18 16:46:17 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-09-18 16:46:17 (GMT) |
commit | 6b2320fa6bd5190dc72b388de5d5b34aa32b0aec (patch) | |
tree | 564380a1ca8488092de0a534ee69434097471a9b | |
parent | 6f6d51d050115ad8e807472620586aa95a494148 (diff) | |
download | cpython-6b2320fa6bd5190dc72b388de5d5b34aa32b0aec.zip cpython-6b2320fa6bd5190dc72b388de5d5b34aa32b0aec.tar.gz cpython-6b2320fa6bd5190dc72b388de5d5b34aa32b0aec.tar.bz2 |
Richard Mortier <rmm1002@users.sourceforge.net>:
Add the constants "printable" and "punctuation" to the string module.
-rw-r--r-- | Lib/string.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 = '' |