blob: 160753af11a91851f9454d35cf7191e956aef1e0 [file] [log] [blame]
Fred Drakec817e271998-08-10 18:40:22 +00001\section{\module{mac} ---
Fred Drake59d8b731999-02-01 20:19:38 +00002 Implementations for the \module{os} module}
Fred Drakefe7f3bc1998-07-23 17:55:31 +00003
Fred Drakef6863c11999-03-02 16:37:17 +00004\declaremodule{builtin}{mac}
5 \platform{Mac}
Fred Drake59d8b731999-02-01 20:19:38 +00006\modulesynopsis{Implementations for the \module{os} module.}
Fred Drakefe7f3bc1998-07-23 17:55:31 +00007
Fred Drake55fca541998-02-18 15:21:26 +00008
Jack Jansen7aeba452003-02-12 09:58:33 +00009This module implements the Mac OS 9 operating system dependent functionality
Fred Drake59d8b731999-02-01 20:19:38 +000010provided by the standard module \module{os}\refstmodindex{os}. It is
Jack Jansen7aeba452003-02-12 09:58:33 +000011best accessed through the \module{os} module. This module is only available in
12MacPython-OS9, on MacPython-OSX \module{posix} is used.
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000013
14The following functions are available in this module:
Fred Drake55fca541998-02-18 15:21:26 +000015\function{chdir()},
16\function{close()},
17\function{dup()},
18\function{fdopen()},
19\function{getcwd()},
20\function{lseek()},
21\function{listdir()},
22\function{mkdir()},
23\function{open()},
24\function{read()},
25\function{rename()},
26\function{rmdir()},
27\function{stat()},
28\function{sync()},
29\function{unlink()},
30\function{write()},
31as well as the exception \exception{error}. Note that the times
32returned by \function{stat()} are floating-point values, like all time
Jack Jansen7aeba452003-02-12 09:58:33 +000033values in MacPython-OS9.
Fred Drakefe7f3bc1998-07-23 17:55:31 +000034
Fred Drakec817e271998-08-10 18:40:22 +000035\section{\module{macpath} ---
Fred Drake59d8b731999-02-01 20:19:38 +000036 MacOS path manipulation functions}
Fred Drakefe7f3bc1998-07-23 17:55:31 +000037
Fred Drakef6863c11999-03-02 16:37:17 +000038\declaremodule{standard}{macpath}
39% Could be labeled \platform{Mac}, but the module should work anywhere and
40% is distributed with the standard library.
Fred Drakefe7f3bc1998-07-23 17:55:31 +000041\modulesynopsis{MacOS path manipulation functions.}
42
Fred Drake55fca541998-02-18 15:21:26 +000043
Fred Drake59d8b731999-02-01 20:19:38 +000044This module is the Macintosh implementation of the \module{os.path}
Fred Drakecf282cd1999-04-28 14:04:36 +000045module. It is most portably accessed as
Fred Drakee15eb351999-11-10 16:13:25 +000046\module{os.path}\refstmodindex{os.path}. Refer to the
47\citetitle[../lib/lib.html]{Python Library Reference} for
48documentation of \module{os.path}.
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000049
50The following functions are available in this module:
Fred Drake55fca541998-02-18 15:21:26 +000051\function{normcase()},
52\function{normpath()},
53\function{isabs()},
54\function{join()},
55\function{split()},
56\function{isdir()},
57\function{isfile()},
58\function{walk()},
59\function{exists()}.
Fred Drake59d8b731999-02-01 20:19:38 +000060For other functions available in \module{os.path} dummy counterparts
Guido van Rossum66774a91996-07-21 02:20:58 +000061are available.