projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f6d51d
)
Richard Mortier <rmm1002@users.sourceforge.net>:
author
Fred Drake
<fdrake@acm.org>
Mon, 18 Sep 2000 16:46:17 +0000
(16:46 +0000)
committer
Fred 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
patch
|
blob
|
history
diff --git
a/Lib/string.py
b/Lib/string.py
index 6570fef3c20cc7f3e8904016d877d01970c7b2c0..8b6343a4ed600568914bdae15acab4029175c42d 100644
(file)
--- 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 = ''