summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libfnmatch.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-01-11 19:06:37 (GMT)
committerFred Drake <fdrake@acm.org>1998-01-11 19:06:37 (GMT)
commit48022db400aff1172bd07533774224a61b2bfd7d (patch)
tree1742d7bcfad09511d46428a98fe38b50df948e0e /Doc/lib/libfnmatch.tex
parenteea714aed41aa36b4564d8e06739f8361c0e04b1 (diff)
downloadcpython-48022db400aff1172bd07533774224a61b2bfd7d.zip
cpython-48022db400aff1172bd07533774224a61b2bfd7d.tar.gz
cpython-48022db400aff1172bd07533774224a61b2bfd7d.tar.bz2
"Unix" --> "\UNIX{}"
Added index references to referred-to modules. Added seealso section pointing to the glob module. Removed description of translate().
Diffstat (limited to 'Doc/lib/libfnmatch.tex')
-rw-r--r--Doc/lib/libfnmatch.tex30
1 files changed, 13 insertions, 17 deletions
diff --git a/Doc/lib/libfnmatch.tex b/Doc/lib/libfnmatch.tex
index 824ee44..ecb77d3 100644
--- a/Doc/lib/libfnmatch.tex
+++ b/Doc/lib/libfnmatch.tex
@@ -2,10 +2,10 @@
\label{module-fnmatch}
\stmodindex{fnmatch}
-This module provides support for Unix shell-style wildcards, 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:
+This module provides support for \UNIX{} shell-style wildcards, which
+are \emph{not} the same as regular expressions (which are documented
+in the \code{re}\refstmodindex{re} module). The special characters
+used in shell-style wildcards are:
\begin{itemize}
\item[\code{*}] matches everything
\item[\code{?}] matches any single character
@@ -13,13 +13,14 @@ in shell-style wildcards are:
\item[\code{[!}\var{seq}\code{]}] matches any character not in \var{seq}
\end{itemize}
-Note that the filename separator (\code{'/'} on Unix) is \emph{not}
-special to this module. See module \code{glob} for pathname expansion
-(\code{glob} uses \code{fnmatch} to match filename segments).
+Note that the filename separator (\code{'/'} on \UNIX{}) is \emph{not}
+special to this module. See module \code{glob}\refstmodindex{glob}
+for pathname expansion (\code{glob} uses \code{fnmatch()} to
+match filename segments).
\renewcommand{\indexsubitem}{(in module fnmatch)}
-\begin{funcdesc}{fnmatch}{filename\, pattern}
+\begin{funcdesc}{fnmatch}{filename, pattern}
Test whether the \var{filename} string matches the \var{pattern}
string, returning true or false. If the operating system is
case-insensitive, then both parameters will be normalized to all
@@ -28,17 +29,12 @@ require a case-sensitive comparision regardless of whether that's
standard for your operating system, use \code{fnmatchcase()} instead.
\end{funcdesc}
-\begin{funcdesc}{fnmatchcase}{}
+\begin{funcdesc}{fnmatchcase}{filename, pattern}
Test whether \var{filename} matches \var{pattern}, returning true or
false; the comparision is case-sensitive.
\end{funcdesc}
-\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. \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}
+\begin{seealso}
+\seemodule{glob}{Shell-style path expansion}
+\end{seealso}