Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8d2c0c2

Browse files
committed
Fixed minor nits, added index entries to make these easier to find for people
not familiar with Unix terminology.
1 parent c43e6a2 commit 8d2c0c2

2 files changed

Lines changed: 17 additions & 9 deletions

File tree

Doc/lib/libfnmatch.tex

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
\section{\module{fnmatch} ---
2-
\UNIX{} shell style pathname pattern matching.}
3-
\declaremodule{standard}{fnmatch}
2+
\UNIX{} style filename pattern matching}
43

5-
\modulesynopsis{\UNIX{} shell style pathname pattern matching.}
4+
\declaremodule{standard}{fnmatch}
5+
\modulesynopsis{\UNIX{} shell style filename pattern matching.}
66

77

88
This module provides support for \UNIX{} shell-style wildcards, which
99
are \emph{not} the same as regular expressions (which are documented
10-
in the \module{re}\refstmodindex{re} module). The special characters
11-
used in shell-style wildcards are:
10+
in the \refmodule{re}\refstmodindex{re} module). The special
11+
characters used in shell-style wildcards are:
12+
\index{filenames!wildcard expansion}
1213

1314
\begin{list}{}{\leftmargin 0.5in \labelwidth 0.45in}
1415
\item[\code{*}] matches everything
@@ -38,6 +39,7 @@ \section{\module{fnmatch} ---
3839
false; the comparision is case-sensitive.
3940
\end{funcdesc}
4041

42+
4143
\begin{seealso}
42-
\seemodule{glob}{Shell-style path expansion}
44+
\seemodule{glob}{Shell-style path expansion}
4345
\end{seealso}

Doc/lib/libglob.tex

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
\section{\module{glob} ---
2-
\UNIX{} shell style pathname pattern expansion.}
3-
\declaremodule{standard}{glob}
2+
\UNIX{} style pathname pattern expansion}
43

4+
\declaremodule{standard}{glob}
55
\modulesynopsis{\UNIX{} shell style pathname pattern expansion.}
66

77

@@ -13,13 +13,14 @@ \section{\module{glob} ---
1313
functions in concert, and not by actually invoking a subshell. (For
1414
tilde and shell variable expansion, use \function{os.path.expanduser()}
1515
and \function{os.path.expandvars()}.)
16+
\index{filenames!pathname expansion}
1617

1718
\begin{funcdesc}{glob}{pathname}
1819
Returns a possibly-empty list of path names that match \var{pathname},
1920
which must be a string containing a path specification.
2021
\var{pathname} can be either absolute (like
2122
\file{/usr/src/Python-1.5/Makefile}) or relative (like
22-
\file{../../Tools/*.gif}), and can contain shell-style wildcards.
23+
\file{../../Tools/*/*.gif}), and can contain shell-style wildcards.
2324
\end{funcdesc}
2425

2526
For example, consider a directory containing only the following files:
@@ -36,3 +37,8 @@ \section{\module{glob} ---
3637
>>> glob.glob('?.gif')
3738
['1.gif']
3839
\end{verbatim}
40+
41+
42+
\begin{seealso}
43+
\seemodule{fnmatch}{Shell-style filename (not path) expansion}
44+
\end{seealso}

0 commit comments

Comments
 (0)