mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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:
parent
a6d2a04065
commit
960fdf9ac3
3 changed files with 33 additions and 3 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue