From: Fred Drake Date: Thu, 10 May 2001 15:13:39 +0000 (+0000) Subject: Remove all mentions of the strop module -- it has been pronounced Evil. X-Git-Tag: v2.1.1c1~133 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=90fe2720b33b1b14b7435feaa9e341c1d1b0a747;p=thirdparty%2FPython%2Fcpython.git 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.) --- diff --git a/Doc/lib/liblocale.tex b/Doc/lib/liblocale.tex index 107c21de7f7e..14afdccf7ce6 100644 --- a/Doc/lib/liblocale.tex +++ b/Doc/lib/liblocale.tex @@ -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: diff --git a/Doc/lib/libstring.tex b/Doc/lib/libstring.tex index e95741eb8c31..38a0dbd2cdd6 100644 --- a/Doc/lib/libstring.tex +++ b/Doc/lib/libstring.tex @@ -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}.