@@ -5,22 +5,22 @@ \chapter{Macintosh Specific Services}
55Aside from the modules described here there are also interfaces to
66various MacOS toolboxes, which are currently not extensively
77described. 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
2525If applicable the module will define a number of Python objects for
2626the various structures declared by the toolbox, and operations will be
@@ -34,60 +34,62 @@ \chapter{Macintosh Specific Services}
3434works.
3535
3636\section {Built-in Module \sectcode {mac} }
37-
37+ \label { module-mac }
3838\bimodindex {mac}
39+
3940This 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}.
4142It is best accessed through the more portable standard module
42- \code {os}.
43+ \module {os}.
4344\refbimodindex {posix}
4445\refstmodindex {os}
4546
4647The 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
6970values appended: the size of the resource fork of the file and its
70714-char creator and type.
7172
7273\section {Standard Module \sectcode {macpath} }
73-
74+ \label { module-macpath }
7475\stmodindex {macpath}
76+
7577This 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
8284The 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
9395are available.
0 commit comments