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

Skip to content

Commit 55fca54

Browse files
committed
Added \label{} for logical addressing.
Logical markup.
1 parent 12918af commit 55fca54

6 files changed

Lines changed: 120 additions & 112 deletions

File tree

Doc/lib/libintro.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
\chapter{Introduction}
2+
\label{intro}
23

34
The ``Python library'' contains several different kinds of components.
45

@@ -11,7 +12,7 @@ \chapter{Introduction}
1112

1213
The library also contains built-in functions and exceptions ---
1314
objects that can be used by all Python code without the need of an
14-
\code{import} statement. Some of these are defined by the core
15+
\keyword{import} statement. Some of these are defined by the core
1516
language, but many are not essential for the core semantics and are
1617
only described here.
1718

@@ -42,6 +43,6 @@ \chapter{Introduction}
4243
front of the manual), or look for a specific function, module or term
4344
in the index (in the back). And finally, if you enjoy learning about
4445
random subjects, you choose a random page number (see module
45-
\code{rand}) and read a section or two.
46+
\module{rand}) and read a section or two.
4647

4748
Let the show begin!

Doc/lib/libmisc.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
\chapter{Miscellaneous Services}
2+
\label{misc}
23

34
The modules described in this chapter provide miscellaneous services
45
that are available in all Python versions. Here's an overview:
56

67
\begin{description}
78

89
\item[math]
9-
--- Mathematical functions (\code{sin()} etc.).
10+
--- Mathematical functions (\function{sin()} etc.).
1011

1112
\item[cmath]
1213
--- Mathematical functions for complex numbers.

Doc/libintro.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
\chapter{Introduction}
2+
\label{intro}
23

34
The ``Python library'' contains several different kinds of components.
45

@@ -11,7 +12,7 @@ \chapter{Introduction}
1112

1213
The library also contains built-in functions and exceptions ---
1314
objects that can be used by all Python code without the need of an
14-
\code{import} statement. Some of these are defined by the core
15+
\keyword{import} statement. Some of these are defined by the core
1516
language, but many are not essential for the core semantics and are
1617
only described here.
1718

@@ -42,6 +43,6 @@ \chapter{Introduction}
4243
front of the manual), or look for a specific function, module or term
4344
in the index (in the back). And finally, if you enjoy learning about
4445
random subjects, you choose a random page number (see module
45-
\code{rand}) and read a section or two.
46+
\module{rand}) and read a section or two.
4647

4748
Let the show begin!

Doc/libmac.tex

Lines changed: 55 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ \chapter{Macintosh Specific Services}
55
Aside from the modules described here there are also interfaces to
66
various MacOS toolboxes, which are currently not extensively
77
described. The toolboxes for which modules exist are:
8-
\code{AE} (Apple Events),
9-
\code{Cm} (Component Manager),
10-
\code{Ctl} (Control Manager),
11-
\code{Dlg} (Dialog Manager),
12-
\code{Evt} (Event Manager),
13-
\code{Fm} (Font Manager),
14-
\code{List} (List Manager),
15-
\code{Menu} (Moenu Manager),
16-
\code{Qd} (QuickDraw),
17-
\code{Qt} (QuickTime),
18-
\code{Res} (Resource Manager and Handles),
19-
\code{Scrap} (Scrap Manager),
20-
\code{Snd} (Sound Manager),
21-
\code{TE} (TextEdit),
22-
\code{Waste} (non-Apple TextEdit replacement) and
23-
\code{Win} (Window Manager).
8+
\module{AE} (Apple Events),
9+
\module{Cm} (Component Manager),
10+
\module{Ctl} (Control Manager),
11+
\module{Dlg} (Dialog Manager),
12+
\module{Evt} (Event Manager),
13+
\module{Fm} (Font Manager),
14+
\module{List} (List Manager),
15+
\module{Menu} (Moenu Manager),
16+
\module{Qd} (QuickDraw),
17+
\module{Qt} (QuickTime),
18+
\module{Res} (Resource Manager and Handles),
19+
\module{Scrap} (Scrap Manager),
20+
\module{Snd} (Sound Manager),
21+
\module{TE} (TextEdit),
22+
\module{Waste} (non-Apple \program{TextEdit} replacement) and
23+
\module{Win} (Window Manager).
2424

2525
If applicable the module will define a number of Python objects for
2626
the various structures declared by the toolbox, and operations will be
@@ -34,60 +34,62 @@ \chapter{Macintosh Specific Services}
3434
works.
3535

3636
\section{Built-in Module \sectcode{mac}}
37-
37+
\label{module-mac}
3838
\bimodindex{mac}
39+
3940
This module provides a subset of the operating system dependent
40-
functionality provided by the optional built-in module \code{posix}.
41+
functionality provided by the optional built-in module \module{posix}.
4142
It is best accessed through the more portable standard module
42-
\code{os}.
43+
\module{os}.
4344
\refbimodindex{posix}
4445
\refstmodindex{os}
4546

4647
The following functions are available in this module:
47-
\code{chdir},
48-
\code{close},
49-
\code{dup},
50-
\code{fdopen},
51-
\code{getcwd},
52-
\code{lseek},
53-
\code{listdir},
54-
\code{mkdir},
55-
\code{open},
56-
\code{read},
57-
\code{rename},
58-
\code{rmdir},
59-
\code{stat},
60-
\code{sync},
61-
\code{unlink},
62-
\code{write},
63-
as well as the exception \code{error}. Note that the times returned by
64-
\code{stat()} are floating-point values, like all time values in
65-
MacPython.
48+
\function{chdir()},
49+
\function{close()},
50+
\function{dup()},
51+
\function{fdopen()},
52+
\function{getcwd()},
53+
\function{lseek()},
54+
\function{listdir()},
55+
\function{mkdir()},
56+
\function{open()},
57+
\function{read()},
58+
\function{rename()},
59+
\function{rmdir()},
60+
\function{stat()},
61+
\function{sync()},
62+
\function{unlink()},
63+
\function{write()},
64+
as well as the exception \exception{error}. Note that the times
65+
returned by \function{stat()} are floating-point values, like all time
66+
values in MacPython.
6667

67-
One additional function is available: \code{xstat()}. This function
68-
returns the same information as \code{stat()}, but with three extra
68+
One additional function is available: \function{xstat()}. This function
69+
returns the same information as \function{stat()}, but with three extra
6970
values appended: the size of the resource fork of the file and its
7071
4-char creator and type.
7172

7273
\section{Standard Module \sectcode{macpath}}
73-
74+
\label{module-macpath}
7475
\stmodindex{macpath}
76+
7577
This module provides a subset of the pathname manipulation functions
76-
available from the optional standard module \code{posixpath}. It is
77-
best accessed through the more portable standard module \code{os}, as
78+
available from the optional standard module \module{posixpath}. It is
79+
best accessed through the more portable standard module \module{os}, as
7880
\code{os.path}.
7981
\refstmodindex{posixpath}
8082
\refstmodindex{os}
8183

8284
The following functions are available in this module:
83-
\code{normcase},
84-
\code{normpath},
85-
\code{isabs},
86-
\code{join},
87-
\code{split},
88-
\code{isdir},
89-
\code{isfile},
90-
\code{walk},
91-
\code{exists}.
92-
For other functions available in \code{posixpath} dummy counterparts
85+
\function{normcase()},
86+
\function{normpath()},
87+
\function{isabs()},
88+
\function{join()},
89+
\function{split()},
90+
\function{isdir()},
91+
\function{isfile()},
92+
\function{walk()},
93+
\function{exists()}.
94+
For other functions available in \module{posixpath} dummy counterparts
9395
are available.

Doc/libmisc.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
\chapter{Miscellaneous Services}
2+
\label{misc}
23

34
The modules described in this chapter provide miscellaneous services
45
that are available in all Python versions. Here's an overview:
56

67
\begin{description}
78

89
\item[math]
9-
--- Mathematical functions (\code{sin()} etc.).
10+
--- Mathematical functions (\function{sin()} etc.).
1011

1112
\item[cmath]
1213
--- Mathematical functions for complex numbers.

Doc/mac/libmac.tex

Lines changed: 55 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ \chapter{Macintosh Specific Services}
55
Aside from the modules described here there are also interfaces to
66
various MacOS toolboxes, which are currently not extensively
77
described. The toolboxes for which modules exist are:
8-
\code{AE} (Apple Events),
9-
\code{Cm} (Component Manager),
10-
\code{Ctl} (Control Manager),
11-
\code{Dlg} (Dialog Manager),
12-
\code{Evt} (Event Manager),
13-
\code{Fm} (Font Manager),
14-
\code{List} (List Manager),
15-
\code{Menu} (Moenu Manager),
16-
\code{Qd} (QuickDraw),
17-
\code{Qt} (QuickTime),
18-
\code{Res} (Resource Manager and Handles),
19-
\code{Scrap} (Scrap Manager),
20-
\code{Snd} (Sound Manager),
21-
\code{TE} (TextEdit),
22-
\code{Waste} (non-Apple TextEdit replacement) and
23-
\code{Win} (Window Manager).
8+
\module{AE} (Apple Events),
9+
\module{Cm} (Component Manager),
10+
\module{Ctl} (Control Manager),
11+
\module{Dlg} (Dialog Manager),
12+
\module{Evt} (Event Manager),
13+
\module{Fm} (Font Manager),
14+
\module{List} (List Manager),
15+
\module{Menu} (Moenu Manager),
16+
\module{Qd} (QuickDraw),
17+
\module{Qt} (QuickTime),
18+
\module{Res} (Resource Manager and Handles),
19+
\module{Scrap} (Scrap Manager),
20+
\module{Snd} (Sound Manager),
21+
\module{TE} (TextEdit),
22+
\module{Waste} (non-Apple \program{TextEdit} replacement) and
23+
\module{Win} (Window Manager).
2424

2525
If applicable the module will define a number of Python objects for
2626
the various structures declared by the toolbox, and operations will be
@@ -34,60 +34,62 @@ \chapter{Macintosh Specific Services}
3434
works.
3535

3636
\section{Built-in Module \sectcode{mac}}
37-
37+
\label{module-mac}
3838
\bimodindex{mac}
39+
3940
This module provides a subset of the operating system dependent
40-
functionality provided by the optional built-in module \code{posix}.
41+
functionality provided by the optional built-in module \module{posix}.
4142
It is best accessed through the more portable standard module
42-
\code{os}.
43+
\module{os}.
4344
\refbimodindex{posix}
4445
\refstmodindex{os}
4546

4647
The following functions are available in this module:
47-
\code{chdir},
48-
\code{close},
49-
\code{dup},
50-
\code{fdopen},
51-
\code{getcwd},
52-
\code{lseek},
53-
\code{listdir},
54-
\code{mkdir},
55-
\code{open},
56-
\code{read},
57-
\code{rename},
58-
\code{rmdir},
59-
\code{stat},
60-
\code{sync},
61-
\code{unlink},
62-
\code{write},
63-
as well as the exception \code{error}. Note that the times returned by
64-
\code{stat()} are floating-point values, like all time values in
65-
MacPython.
48+
\function{chdir()},
49+
\function{close()},
50+
\function{dup()},
51+
\function{fdopen()},
52+
\function{getcwd()},
53+
\function{lseek()},
54+
\function{listdir()},
55+
\function{mkdir()},
56+
\function{open()},
57+
\function{read()},
58+
\function{rename()},
59+
\function{rmdir()},
60+
\function{stat()},
61+
\function{sync()},
62+
\function{unlink()},
63+
\function{write()},
64+
as well as the exception \exception{error}. Note that the times
65+
returned by \function{stat()} are floating-point values, like all time
66+
values in MacPython.
6667

67-
One additional function is available: \code{xstat()}. This function
68-
returns the same information as \code{stat()}, but with three extra
68+
One additional function is available: \function{xstat()}. This function
69+
returns the same information as \function{stat()}, but with three extra
6970
values appended: the size of the resource fork of the file and its
7071
4-char creator and type.
7172

7273
\section{Standard Module \sectcode{macpath}}
73-
74+
\label{module-macpath}
7475
\stmodindex{macpath}
76+
7577
This module provides a subset of the pathname manipulation functions
76-
available from the optional standard module \code{posixpath}. It is
77-
best accessed through the more portable standard module \code{os}, as
78+
available from the optional standard module \module{posixpath}. It is
79+
best accessed through the more portable standard module \module{os}, as
7880
\code{os.path}.
7981
\refstmodindex{posixpath}
8082
\refstmodindex{os}
8183

8284
The following functions are available in this module:
83-
\code{normcase},
84-
\code{normpath},
85-
\code{isabs},
86-
\code{join},
87-
\code{split},
88-
\code{isdir},
89-
\code{isfile},
90-
\code{walk},
91-
\code{exists}.
92-
For other functions available in \code{posixpath} dummy counterparts
85+
\function{normcase()},
86+
\function{normpath()},
87+
\function{isabs()},
88+
\function{join()},
89+
\function{split()},
90+
\function{isdir()},
91+
\function{isfile()},
92+
\function{walk()},
93+
\function{exists()}.
94+
For other functions available in \module{posixpath} dummy counterparts
9395
are available.

0 commit comments

Comments
 (0)