mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Added note about the module's obsolescence.
This commit is contained in:
parent
5bdea89c89
commit
28f9a68deb
2 changed files with 22 additions and 2 deletions
|
@ -3,7 +3,17 @@
|
|||
|
||||
\bimodindex{regex}
|
||||
This module provides regular expression matching operations similar to
|
||||
those found in Emacs. It is always available.
|
||||
those found in Emacs.
|
||||
|
||||
\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. (The interfaces
|
||||
are different too, so the conversion cannot be fully automated.)
|
||||
|
||||
By default the patterns are Emacs-style regular expressions
|
||||
(with one exception). There is
|
||||
|
|
|
@ -3,7 +3,17 @@
|
|||
|
||||
\bimodindex{regex}
|
||||
This module provides regular expression matching operations similar to
|
||||
those found in Emacs. It is always available.
|
||||
those found in Emacs.
|
||||
|
||||
\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. (The interfaces
|
||||
are different too, so the conversion cannot be fully automated.)
|
||||
|
||||
By default the patterns are Emacs-style regular expressions
|
||||
(with one exception). There is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue