]> granicus.if.org Git - python/commitdiff
Add a note that up to 1.4, translate() produced Emacs style syntax; in
authorGuido van Rossum <guido@python.org>
Tue, 30 Dec 1997 04:43:36 +0000 (04:43 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 30 Dec 1997 04:43:36 +0000 (04:43 +0000)
1.5, it produces Perl style syntax.  Also change "Python's regular
expressions" into plain "regular expression" in the intro.

Doc/lib/libfnmatch.tex
Doc/libfnmatch.tex

index 223b6153dfd8d9d0b7b490ddc9d9db3aa225cec8..824ee44a26d95ac57cf95317f12eb66cfd49f627 100644 (file)
@@ -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}
 
index 223b6153dfd8d9d0b7b490ddc9d9db3aa225cec8..824ee44a26d95ac57cf95317f12eb66cfd49f627 100644 (file)
@@ -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}