summaryrefslogtreecommitdiffstats
path: root/Doc/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 /Doc/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 'Doc/lib')
-rw-r--r--Doc/lib/libstring.tex28
1 files changed, 25 insertions, 3 deletions
diff --git a/Doc/lib/libstring.tex b/Doc/lib/libstring.tex
index 38a0dbd..7e74c18 100644
--- a/Doc/lib/libstring.tex
+++ b/Doc/lib/libstring.tex
@@ -12,6 +12,22 @@ expressions.
The constants defined in this module are:
+\begin{datadesc}{ascii_letters}
+ The concatenation of the \constant{ascii_lowercase} and
+ \constant{ascii_uppercase} constants described below. This value is
+ not locale-dependent.
+\end{datadesc}
+
+\begin{datadesc}{ascii_lowercase}
+ The lowercase letters \code{'abcdefghijklmnopqrstuvwxyz'}. This
+ value is not locale-dependent and will not change.
+\end{datadesc}
+
+\begin{datadesc}{ascii_uppercase}
+ The uppercase letters \code{'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}. This
+ value is not locale-dependent and will not change.
+\end{datadesc}
+
\begin{datadesc}{digits}
The string \code{'0123456789'}.
\end{datadesc}
@@ -22,7 +38,9 @@ The constants defined in this module are:
\begin{datadesc}{letters}
The concatenation of the strings \constant{lowercase} and
- \constant{uppercase} described below.
+ \constant{uppercase} described below. The specific value is
+ locale-dependent, and will be updated when
+ \function{locale.setlocale()} is called.
\end{datadesc}
\begin{datadesc}{lowercase}
@@ -30,7 +48,9 @@ The constants defined in this module are:
letters. On most systems this is the string
\code{'abcdefghijklmnopqrstuvwxyz'}. Do not change its definition ---
the effect on the routines \function{upper()} and
- \function{swapcase()} is undefined.
+ \function{swapcase()} is undefined. The specific value is
+ locale-dependent, and will be updated when
+ \function{locale.setlocale()} is called.
\end{datadesc}
\begin{datadesc}{octdigits}
@@ -53,7 +73,9 @@ The constants defined in this module are:
letters. On most systems this is the string
\code{'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}. Do not change its definition ---
the effect on the routines \function{lower()} and
- \function{swapcase()} is undefined.
+ \function{swapcase()} is undefined. The specific value is
+ locale-dependent, and will be updated when
+ \function{locale.setlocale()} is called.
\end{datadesc}
\begin{datadesc}{whitespace}