Kaydet (Commit) e9735ac2 authored tarafından Fred Drake's avatar Fred Drake

Remove all mentions of the strop module -- it has been pronounced Evil.

(The string "strop" is found in the rexec documentation, but that should
not be changed until strop is actually removed or rexec no longer allows
it.)
üst 99e607a8
......@@ -300,16 +300,14 @@ should you document that your module is not compatible with
non-\samp{C} locale settings.
The case conversion functions in the
\refmodule{string}\refstmodindex{string} and
\module{strop}\refbimodindex{strop} modules are affected by the locale
settings. When a call to the \function{setlocale()} function changes
the \constant{LC_CTYPE} settings, the variables
\refmodule{string}\refstmodindex{string} module are affected by the
locale settings. When a call to the \function{setlocale()} function
changes the \constant{LC_CTYPE} settings, the variables
\code{string.lowercase}, \code{string.uppercase} and
\code{string.letters} (and their counterparts in \module{strop}) are
recalculated. Note that this code that uses these variable through
`\keyword{from} ... \keyword{import} ...', e.g. \code{from string
import letters}, is not affected by subsequent \function{setlocale()}
calls.
\code{string.letters} are recalculated. Note that this code that uses
these variable through `\keyword{from} ... \keyword{import} ...',
e.g.\ \code{from string import letters}, is not affected by subsequent
\function{setlocale()} calls.
The only way to perform numeric operations according to the locale
is to use the special functions defined by this module:
......
......@@ -265,12 +265,3 @@ The functions defined in this module are:
\var{maxsplit} is given, the first \var{maxsplit} occurrences are
replaced.
\end{funcdesc}
This module is implemented in Python. Much of its functionality has
been reimplemented in the built-in module
\module{strop}\refbimodindex{strop}. However, you
should \emph{never} import the latter module directly. When
\module{string} discovers that \module{strop} exists, it transparently
replaces parts of itself with the implementation from \module{strop}.
After initialization, there is \emph{no} overhead in using
\module{string} instead of \module{strop}.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment