]> granicus.if.org Git - python/commitdiff
Richard Mortier <rmm1002@users.sourceforge.net>:
authorFred Drake <fdrake@acm.org>
Mon, 18 Sep 2000 16:46:17 +0000 (16:46 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 18 Sep 2000 16:46:17 +0000 (16:46 +0000)
Add the constants "printable" and "punctuation" to the string module.

Lib/string.py

index 6570fef3c20cc7f3e8904016d877d01970c7b2c0..8b6343a4ed600568914bdae15acab4029175c42d 100644 (file)
@@ -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 = ''