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

Skip to content

Commit 54820dc

Browse files
committed
Fixed index references to modules.
1 parent 6206394 commit 54820dc

14 files changed

Lines changed: 44 additions & 42 deletions

Doc/lib/libcopy.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ \section{Standard Module \sectcode{copy}}
7575
\code{__getinitargs__()}, \code{__getstate__()} and
7676
\code{__setstate__()}. See the description of module \code{pickle}
7777
for information on these methods.
78-
\stmodindex{pickle}
78+
\refstmodindex{pickle}
7979
\renewcommand{\indexsubitem}{(copy protocol)}
8080
\ttindex{__getinitargs__}
8181
\ttindex{__getstate__}

Doc/lib/libhtmllib.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ \section{Standard Module \sectcode{htmllib}}
1919
provided in the \code{formatter} module; refer to the documentation
2020
for that module for information on the formatter interface.
2121
\index{SGML}
22-
\stmodindex{sgmllib}
22+
\refstmodindex{sgmllib}
2323
\ttindex{SGMLParser}
2424
\index{formatter}
25-
\stmodindex{formatter}
25+
\refstmodindex{formatter}
2626

2727
The following is a summary of the interface defined by
2828
\code{sgmllib.SGMLParser}:

Doc/lib/libhttplib.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ \section{Standard Module \sectcode{httplib}}
88
This module defines a class which implements the client side of the
99
HTTP protocol. It is normally not used directly --- the module
1010
\code{urllib} uses it to handle URLs that use HTTP.
11-
\stmodindex{urllib}
11+
\refstmodindex{urllib}
1212

1313
The module defines one class, \code{HTTP}. An \code{HTTP} instance
1414
represents one transaction with an HTTP server. It should be
@@ -98,7 +98,7 @@ \subsection{HTTP Objects}
9898
to the reply code; and \var{headers} is an instance of the class
9999
\code{mimetools.Message} containing the headers received from the server.
100100
See the description of the \code{mimetools} module.
101-
\stmodindex{mimetools}
101+
\refstmodindex{mimetools}
102102
\end{funcdesc}
103103

104104
\begin{funcdesc}{getfile}{}

Doc/lib/libmarshal.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ \section{Built-in Module \sectcode{marshal}}
2020
\code{pickle} and \code{shelve}. The \code{marshal} module exists
2121
mainly to support reading and writing the ``pseudo-compiled'' code for
2222
Python modules of \samp{.pyc} files.
23-
\stmodindex{pickle}
24-
\stmodindex{shelve}
23+
\refstmodindex{pickle}
24+
\refstmodindex{shelve}
2525
\obindex{code}
2626

2727
Not all Python object types are supported; in general, only objects

Doc/lib/libpickle.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ \section{Standard Module \sectcode{pickle}}
2525
to send them across a network or store them in a database. The module
2626
\code{shelve} provides a simple interface to pickle and unpickle
2727
objects on ``dbm''-style database files.
28-
\stmodindex{shelve}
28+
\refstmodindex{shelve}
2929

3030
\strong{Note:} The \code{pickle} module is rather slow. A
3131
reimplementation of the same algorithm in C, which is up to 1000 times
@@ -36,7 +36,7 @@ \section{Standard Module \sectcode{pickle}}
3636

3737
Unlike the built-in module \code{marshal}, \code{pickle} handles the
3838
following correctly:
39-
\stmodindex{marshal}
39+
\refbimodindex{marshal}
4040

4141
\begin{itemize}
4242

@@ -74,7 +74,7 @@ \section{Standard Module \sectcode{pickle}}
7474
long as \code{marshal} continues to be used for reading and writing
7575
code objects), and at least this avoids the possibility of smuggling
7676
Trojan horses into a program.
77-
\stmodindex{marshal}
77+
\refbimodindex{marshal}
7878

7979
For the benefit of persistency modules written using \code{pickle}, it
8080
supports the notion of a reference to an object outside the pickled

Doc/lib/libppath.tex

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ \section{Standard Module \sectcode{posixpath}}
66

77
\strong{Do not import this module directly.} Instead, import the
88
module \code{os} and use \code{os.path}.
9-
\stmodindex{os}
9+
\refstmodindex{os}
1010

1111
\renewcommand{\indexsubitem}{(in module posixpath)}
1212

@@ -38,6 +38,7 @@ \section{Standard Module \sectcode{posixpath}}
3838
an initial \samp{\~\var{user}} is looked up in the password directory through
3939
the built-in module \code{pwd}. If the expansion fails, or if the
4040
path does not begin with a tilde, the path is returned unchanged.
41+
\refbimodindex{pwd}
4142
\end{funcdesc}
4243

4344
\begin{funcdesc}{expandvars}{p}
@@ -54,14 +55,14 @@ \section{Standard Module \sectcode{posixpath}}
5455

5556
\begin{funcdesc}{isfile}{p}
5657
Return true if \var{p} is an existing regular file. This follows
57-
symbolic links, so both \code{islink()} and \code{isfile()} can be true for the same
58-
path.
58+
symbolic links, so both \code{islink()} and \code{isfile()} can be
59+
true for the same path.
5960
\end{funcdesc}
6061

6162
\begin{funcdesc}{isdir}{p}
6263
Return true if \var{p} is an existing directory. This follows
63-
symbolic links, so both \code{islink()} and \code{isdir()} can be true for the same
64-
path.
64+
symbolic links, so both \code{islink()} and \code{isdir()} can be true
65+
for the same path.
6566
\end{funcdesc}
6667

6768
\begin{funcdesc}{islink}{p}
@@ -97,7 +98,7 @@ \section{Standard Module \sectcode{posixpath}}
9798
\begin{funcdesc}{samefile}{p\, q}
9899
Return true if both pathname arguments refer to the same file or directory
99100
(as indicated by device number and i-node number).
100-
Raise an exception if a stat call on either pathname fails.
101+
Raise an exception if a \code{stat()} call on either pathname fails.
101102
\end{funcdesc}
102103

103104
\begin{funcdesc}{split}{p}

Doc/lib/libsys.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ \section{Built-in Module \sectcode{sys}}
8383
(e.g. the \code{config.h} header file) are installed in the directory
8484
\code{sys.exec_prefix+"/lib/python\emph{VER}/config"}, and shared library
8585
modules are installed in
86-
\code{sys.exec_prefix+"/lib/python\emph{VER}/sharedmodules"},
86+
\code{sys.exec_prefix+"/lib/python\emph{VER}/lib-dynload"},
8787
where \emph{VER} is equal to \code{sys.version[:3]}.
8888
\end{datadesc}
8989

@@ -115,7 +115,7 @@ \section{Built-in Module \sectcode{sys}}
115115
(Typical use is \code{import pdb; pdb.pm()} to enter the post-mortem
116116
debugger; see the chapter ``The Python Debugger'' for more
117117
information.)
118-
\stmodindex{pdb}
118+
\refstmodindex{pdb}
119119

120120
The meaning of the variables is the same
121121
as that of the return values from \code{sys.exc_info()} above.
@@ -139,7 +139,7 @@ \section{Built-in Module \sectcode{sys}}
139139
interpreter is invoked interactively or if the script is read from
140140
standard input), \code{sys.path[0]} is the empty string, which directs
141141
Python to search modules in the current directory first. Notice that
142-
the script directory is inserted {\em before} the entries inserted as
142+
the script directory is inserted \emph{before} the entries inserted as
143143
a result of \code{\$PYTHONPATH}.
144144
\end{datadesc}
145145

@@ -215,11 +215,11 @@ \section{Built-in Module \sectcode{sys}}
215215
own prompts and (almost all of) its error messages go to
216216
\code{sys.stderr}. \code{sys.stdout} and \code{sys.stderr} needn't
217217
be built-in file objects: any object is acceptable as long as it has
218-
a \code{write} method that takes a string argument. (Changing these
218+
a \code{write()} method that takes a string argument. (Changing these
219219
objects doesn't affect the standard I/O streams of processes
220220
executed by \code{popen()}, \code{system()} or the \code{exec*()}
221221
family of functions in the \code{os} module.)
222-
\stmodindex{os}
222+
\refstmodindex{os}
223223
\end{datadesc}
224224

225225
\begin{datadesc}{tracebacklimit}

Doc/libcopy.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ \section{Standard Module \sectcode{copy}}
7575
\code{__getinitargs__()}, \code{__getstate__()} and
7676
\code{__setstate__()}. See the description of module \code{pickle}
7777
for information on these methods.
78-
\stmodindex{pickle}
78+
\refstmodindex{pickle}
7979
\renewcommand{\indexsubitem}{(copy protocol)}
8080
\ttindex{__getinitargs__}
8181
\ttindex{__getstate__}

Doc/libhtmllib.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ \section{Standard Module \sectcode{htmllib}}
1919
provided in the \code{formatter} module; refer to the documentation
2020
for that module for information on the formatter interface.
2121
\index{SGML}
22-
\stmodindex{sgmllib}
22+
\refstmodindex{sgmllib}
2323
\ttindex{SGMLParser}
2424
\index{formatter}
25-
\stmodindex{formatter}
25+
\refstmodindex{formatter}
2626

2727
The following is a summary of the interface defined by
2828
\code{sgmllib.SGMLParser}:

Doc/libhttplib.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ \section{Standard Module \sectcode{httplib}}
88
This module defines a class which implements the client side of the
99
HTTP protocol. It is normally not used directly --- the module
1010
\code{urllib} uses it to handle URLs that use HTTP.
11-
\stmodindex{urllib}
11+
\refstmodindex{urllib}
1212

1313
The module defines one class, \code{HTTP}. An \code{HTTP} instance
1414
represents one transaction with an HTTP server. It should be
@@ -98,7 +98,7 @@ \subsection{HTTP Objects}
9898
to the reply code; and \var{headers} is an instance of the class
9999
\code{mimetools.Message} containing the headers received from the server.
100100
See the description of the \code{mimetools} module.
101-
\stmodindex{mimetools}
101+
\refstmodindex{mimetools}
102102
\end{funcdesc}
103103

104104
\begin{funcdesc}{getfile}{}

0 commit comments

Comments
 (0)