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.
This commit is contained in:
Fred Drake 2001-07-20 18:38:26 +00:00
parent a6d2a04065
commit 960fdf9ac3
3 changed files with 33 additions and 3 deletions

View file

@ -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'