[Python-checkins] CVS: python/dist/src/Lib string.py,1.51,1.52
Fred L. Drake
python-dev@python.org
Mon, 18 Sep 2000 09:46:21 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv24172/Lib
Modified Files:
string.py
Log Message:
Richard Mortier <rmm1002@users.sourceforge.net>:
Add the constants "printable" and "punctuation" to the string module.
Index: string.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/string.py,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -r1.51 -r1.52
*** string.py 2000/07/16 12:04:30 1.51
--- string.py 2000/09/18 16:46:17 1.52
***************
*** 26,29 ****
--- 26,31 ----
hexdigits = digits + 'abcdef' + 'ABCDEF'
octdigits = '01234567'
+ punctuaction = """!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~"""
+ printable = digits + letters + punctuation + whitespace
# Case conversion helpers