diff options
author | Guido van Rossum <guido@python.org> | 1997-12-30 04:43:36 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-30 04:43:36 (GMT) |
commit | 8e94489882573033877bc56bf7ddd5e23aa5d641 (patch) | |
tree | 8d096c5aa309f49dedd655273e5ce1aa48f4bb62 /Doc | |
parent | e33e903461f39826bf6a2a7da5312a4bc16f7d98 (diff) | |
download | cpython-8e94489882573033877bc56bf7ddd5e23aa5d641.zip cpython-8e94489882573033877bc56bf7ddd5e23aa5d641.tar.gz cpython-8e94489882573033877bc56bf7ddd5e23aa5d641.tar.bz2 |
Add a note that up to 1.4, translate() produced Emacs style syntax; in
1.5, it produces Perl style syntax. Also change "Python's regular
expressions" into plain "regular expression" in the intro.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libfnmatch.tex | 7 | ||||
-rw-r--r-- | Doc/libfnmatch.tex | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/Doc/lib/libfnmatch.tex b/Doc/lib/libfnmatch.tex index 223b615..824ee44 100644 --- a/Doc/lib/libfnmatch.tex +++ b/Doc/lib/libfnmatch.tex @@ -3,7 +3,7 @@ \stmodindex{fnmatch} This module provides support for Unix shell-style wildcards, which are -\emph{not} the same as Python's regular expressions (which are +\emph{not} the same as regular expressions (which are documented in the \code{re} module). The special characters used in shell-style wildcards are: \begin{itemize} @@ -36,6 +36,9 @@ false; the comparision is case-sensitive. \begin{funcdesc}{translate}{pattern} Translate a shell pattern into a corresponding regular expression, returning a string describing the pattern. It does not compile the -expression. +expression. \strong{Version note:} in Python 1.4 and earlier, this +function translated to \code{regex} (Emacs style) regular expressions; +in 1.5 and later, it translates to \code{re} (Perl style) regular +expressions. \end{funcdesc} diff --git a/Doc/libfnmatch.tex b/Doc/libfnmatch.tex index 223b615..824ee44 100644 --- a/Doc/libfnmatch.tex +++ b/Doc/libfnmatch.tex @@ -3,7 +3,7 @@ \stmodindex{fnmatch} This module provides support for Unix shell-style wildcards, which are -\emph{not} the same as Python's regular expressions (which are +\emph{not} the same as regular expressions (which are documented in the \code{re} module). The special characters used in shell-style wildcards are: \begin{itemize} @@ -36,6 +36,9 @@ false; the comparision is case-sensitive. \begin{funcdesc}{translate}{pattern} Translate a shell pattern into a corresponding regular expression, returning a string describing the pattern. It does not compile the -expression. +expression. \strong{Version note:} in Python 1.4 and earlier, this +function translated to \code{regex} (Emacs style) regular expressions; +in 1.5 and later, it translates to \code{re} (Perl style) regular +expressions. \end{funcdesc} |