mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Richard Mortier <rmm1002@users.sourceforge.net>:
Add the constants "printable" and "punctuation" to the string module.
This commit is contained in:
parent
6f6d51d050
commit
6b2320fa6b
1 changed files with 2 additions and 0 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue