mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
letters:
Fix description; lowercase and uppercase are strings, not
functions! Noted by Randall Hopper <aa8vb@yahoo.com>.
maketrans():
Minor markup nits in description.
This commit is contained in:
parent
8394595f3b
commit
0682be4524
1 changed files with 4 additions and 4 deletions
|
|
@ -21,8 +21,8 @@ The constants defined in this module are are:
|
||||||
\end{datadesc}
|
\end{datadesc}
|
||||||
|
|
||||||
\begin{datadesc}{letters}
|
\begin{datadesc}{letters}
|
||||||
The concatenation of the strings \function{lowercase()} and
|
The concatenation of the strings \constant{lowercase} and
|
||||||
\function{uppercase()} described below.
|
\constant{uppercase} described below.
|
||||||
\end{datadesc}
|
\end{datadesc}
|
||||||
|
|
||||||
\begin{datadesc}{lowercase}
|
\begin{datadesc}{lowercase}
|
||||||
|
|
@ -156,8 +156,8 @@ The functions defined in this module are:
|
||||||
each character in \var{from} into the character at the same position
|
each character in \var{from} into the character at the same position
|
||||||
in \var{to}; \var{from} and \var{to} must have the same length.
|
in \var{to}; \var{from} and \var{to} must have the same length.
|
||||||
|
|
||||||
\strong{Warning:} don't use strings derived from \code{lowercase}
|
\strong{Warning:} don't use strings derived from \constant{lowercase}
|
||||||
and \code{uppercase} as arguments; in some locales, these don't have
|
and \constant{uppercase} as arguments; in some locales, these don't have
|
||||||
the same length. For case conversions, always use
|
the same length. For case conversions, always use
|
||||||
\function{lower()} and \function{upper()}.
|
\function{lower()} and \function{upper()}.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue