summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-07-20 18:38:26 (GMT)
committerFred Drake <fdrake@acm.org>2001-07-20 18:38:26 (GMT)
commit960fdf9ac3a15eceebd8dd6882bedaae787fa5fb (patch)
treecd3f65a142062a53886e94f5ca63f4985c543be9 /Lib
parenta6d2a04065e40997853c494efa03dcf2e91d6d95 (diff)
downloadcpython-960fdf9ac3a15eceebd8dd6882bedaae787fa5fb.zip
cpython-960fdf9ac3a15eceebd8dd6882bedaae787fa5fb.tar.gz
cpython-960fdf9ac3a15eceebd8dd6882bedaae787fa5fb.tar.bz2
Added the constants ascii_letters, ascii_lowercase, and ascii_uppercase
to the string module. This was determined to be the right approach in SF bug #226706.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/string.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/string.py b/Lib/string.py
index 913d980..d682fc7 100644
--- a/Lib/string.py
+++ b/Lib/string.py
@@ -24,6 +24,9 @@ whitespace = ' \t\n\r\v\f'
lowercase = 'abcdefghijklmnopqrstuvwxyz'
uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
letters = lowercase + uppercase
+ascii_lowercase = lowercase
+ascii_uppercase = uppercase
+ascii_letters = ascii_lowercase + ascii_uppercase
digits = '0123456789'
hexdigits = digits + 'abcdef' + 'ABCDEF'
octdigits = '01234567'