summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-30 04:54:47 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-30 04:54:47 (GMT)
commit77796195242c857c561540108afc05d3ab5f759b (patch)
tree2a109168aa7ad0f20f583f1eb907424f1ad3fda2
parentb1b8f23903b1199c07b65d1da03526cfb6e03927 (diff)
downloadcpython-77796195242c857c561540108afc05d3ab5f759b.zip
cpython-77796195242c857c561540108afc05d3ab5f759b.tar.gz
cpython-77796195242c857c561540108afc05d3ab5f759b.tar.bz2
Add obsolescence note.
-rw-r--r--Doc/lib/libregsub.tex11
-rw-r--r--Doc/libregsub.tex11
2 files changed, 22 insertions, 0 deletions
diff --git a/Doc/lib/libregsub.tex b/Doc/lib/libregsub.tex
index 6d48986..03e5c3f 100644
--- a/Doc/lib/libregsub.tex
+++ b/Doc/lib/libregsub.tex
@@ -7,6 +7,17 @@ regular expressions (see built-in module \code{regex}).
Warning: these functions are not thread-safe.
+\strong{Obsolescence note:}
+This module is obsolete as of Python version 1.5; it is still being
+maintained because much existing code still uses it. All new code in
+need of regular expressions should use the new \code{re} module, which
+supports the more powerful and regular Perl-style regular expressions.
+Existing code should be converted. The standard library module
+\code{reconvert} helps in converting \code{regex} style regular
+expressions to \code{re} style regular expressions. (For more
+conversion help, see the URL
+\file{http://starship.skyport.net/crew/amk/regex/regex-to-re.html}.)
+
\renewcommand{\indexsubitem}{(in module regsub)}
\begin{funcdesc}{sub}{pat\, repl\, str}
diff --git a/Doc/libregsub.tex b/Doc/libregsub.tex
index 6d48986..03e5c3f 100644
--- a/Doc/libregsub.tex
+++ b/Doc/libregsub.tex
@@ -7,6 +7,17 @@ regular expressions (see built-in module \code{regex}).
Warning: these functions are not thread-safe.
+\strong{Obsolescence note:}
+This module is obsolete as of Python version 1.5; it is still being
+maintained because much existing code still uses it. All new code in
+need of regular expressions should use the new \code{re} module, which
+supports the more powerful and regular Perl-style regular expressions.
+Existing code should be converted. The standard library module
+\code{reconvert} helps in converting \code{regex} style regular
+expressions to \code{re} style regular expressions. (For more
+conversion help, see the URL
+\file{http://starship.skyport.net/crew/amk/regex/regex-to-re.html}.)
+
\renewcommand{\indexsubitem}{(in module regsub)}
\begin{funcdesc}{sub}{pat\, repl\, str}