Update of /cvsroot/jython/jython/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv4891
Modified Files:
string.py
Log Message:
Define the new 2.2 names.
This closes patch: "[ #500267 ] add missing attributes to string.py".
Index: string.py
===================================================================
RCS file: /cvsroot/jython/jython/Lib/string.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** string.py 2000/09/30 10:40:20 1.8
--- string.py 2002/01/07 11:58:26 1.9
***************
*** 14,20 ****
--- 14,28 ----
uppercase -- a string containing all characters considered uppercase letters
letters -- a string containing all characters considered letters
+ ascii_lowercase -- a string containing all characters considered lowercase
+ letters that is not locale-dependent and will not change.
+ ascii_uppercase -- a string containing all characters considered uppercase
+ letters that is not locale-dependent and will not change.
+ ascii_letters -- The concatenation of the ascii_lowercase and ascii_uppercase
+ constants described below. This value is not locale-dependent.
digits -- a string containing all characters considered decimal digits
hexdigits -- a string containing all characters considered hexadecimal digits
octdigits -- a string containing all characters considered octal digits
+ punctuation -- a string containing all characters considered punctuation
+ printable -- a string containing all characters considered printable
"""
***************
*** 28,31 ****
--- 36,47 ----
hexdigits = digits + 'abcdef' + 'ABCDEF'
octdigits = '01234567'
+ punctuation = """!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~"""
+ printable = digits + letters + punctuation + whitespace
+
+ # not set to 'lowercase' or 'uppercase' because they can change
+ ascii_lowercase = 'abcdefghijklmnopqrstuvwxyz'
+ ascii_uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+ ascii_letters = ascii_lowercase + ascii_uppercase
+
# Case conversion helpers
|