Richard Mortier <rmm1002@users.sourceforge.net>:

Add the constants "printable" and "punctuation" to the string module.
This commit is contained in:
Fred Drake 2000-09-18 16:46:17 +00:00
parent 6f6d51d050
commit 6b2320fa6b
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ letters = lowercase + uppercase
digits = '0123456789' digits = '0123456789'
hexdigits = digits + 'abcdef' + 'ABCDEF' hexdigits = digits + 'abcdef' + 'ABCDEF'
octdigits = '01234567' octdigits = '01234567'
punctuaction = """!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~"""
printable = digits + letters + punctuation + whitespace
# Case conversion helpers # Case conversion helpers
_idmap = '' _idmap = ''