libmac.tex 1.83 KB
Newer Older
Fred Drake's avatar
Fred Drake committed
1
\section{\module{mac} ---
2
         Implementations for the \module{os} module}
3

4 5
\declaremodule{builtin}{mac}
  \platform{Mac}
6
\modulesynopsis{Implementations for the \module{os} module.}
7

8

9
This module implements the Mac OS 9 operating system dependent functionality
10
provided by the standard module \module{os}\refstmodindex{os}.  It is
11 12
best accessed through the \module{os} module. This module is only available in
MacPython-OS9, on MacPython-OSX \module{posix} is used.
13 14

The following functions are available in this module:
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
\function{chdir()},
\function{close()},
\function{dup()},
\function{fdopen()},
\function{getcwd()},
\function{lseek()},
\function{listdir()},
\function{mkdir()},
\function{open()},
\function{read()},
\function{rename()},
\function{rmdir()},
\function{stat()},
\function{sync()},
\function{unlink()},
\function{write()},
as well as the exception \exception{error}. Note that the times
returned by \function{stat()} are floating-point values, like all time
33
values in MacPython-OS9.
34

Fred Drake's avatar
Fred Drake committed
35
\section{\module{macpath} ---
36
         MacOS path manipulation functions}
37

38 39 40
\declaremodule{standard}{macpath}
% Could be labeled \platform{Mac}, but the module should work anywhere and
% is distributed with the standard library.
41 42
\modulesynopsis{MacOS path manipulation functions.}

43

44
This module is the Macintosh implementation of the \module{os.path}
45
module.  It is most portably accessed as
46 47 48
\module{os.path}\refstmodindex{os.path}.  Refer to the
\citetitle[../lib/lib.html]{Python Library Reference} for
documentation of \module{os.path}.
49 50

The following functions are available in this module:
51 52 53 54 55 56 57 58 59
\function{normcase()},
\function{normpath()},
\function{isabs()},
\function{join()},
\function{split()},
\function{isdir()},
\function{isfile()},
\function{walk()},
\function{exists()}.
60
For other functions available in \module{os.path} dummy counterparts
61
are available.