]> granicus.if.org Git - python/commitdiff
Add obsolescence note.
authorGuido van Rossum <guido@python.org>
Tue, 30 Dec 1997 04:54:47 +0000 (04:54 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 30 Dec 1997 04:54:47 +0000 (04:54 +0000)
Doc/lib/libregsub.tex
Doc/libregsub.tex

index 6d489861d705271ea367236c139e66cd1e42bb4b..03e5c3f1c324b9d5ddac6fe1dc6c44f068ccb018 100644 (file)
@@ -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}
index 6d489861d705271ea367236c139e66cd1e42bb4b..03e5c3f1c324b9d5ddac6fe1dc6c44f068ccb018 100644 (file)
@@ -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}