cpython/Doc/mac/libmac.tex

77 lines
2.4 KiB
TeX
Raw Normal View History

1998-08-10 15:40:22 -03:00
\section{\module{mac} ---
Implementations for the \module{os} module}
1999-03-02 12:37:17 -04:00
\declaremodule{builtin}{mac}
\platform{Mac}
\modulesynopsis{Implementations for the \module{os} module.}
1996-07-20 23:20:58 -03:00
This module implements the operating system dependent functionality
provided by the standard module \module{os}\refstmodindex{os}. It is
best accessed through the \module{os} module.
1994-01-01 21:22:07 -04:00
The following functions are available in this module:
\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
values in MacPython.
1996-10-15 11:37:31 -03:00
One additional function is available, but only under Classic MacPython,
not under Carbon MacPython:
\begin{funcdesc}{xstat}{path}
This function returns the same information as \function{stat()}, but
with three additional values appended: the size of the resource fork
of the file and its 4-character creator and type.
Availability: Classic MacPython only.
\deprecated{2.3}{Use the \function{\refmodule{macfs}.FSSpec()}
function to get an FSSpec object for the file, then
use the \method{GetCreatorType()} method to get the
creator and type information. It will no longer be
possible to get the size of the resource fork.}
\end{funcdesc}
1994-01-01 21:22:07 -04:00
1998-08-10 15:40:22 -03:00
\section{\module{macpath} ---
MacOS path manipulation functions}
1999-03-02 12:37:17 -04:00
\declaremodule{standard}{macpath}
% Could be labeled \platform{Mac}, but the module should work anywhere and
% is distributed with the standard library.
\modulesynopsis{MacOS path manipulation functions.}
This module is the Macintosh implementation of the \module{os.path}
module. It is most portably accessed as
1999-11-10 12:13:25 -04:00
\module{os.path}\refstmodindex{os.path}. Refer to the
\citetitle[../lib/lib.html]{Python Library Reference} for
documentation of \module{os.path}.
1994-01-01 21:22:07 -04:00
The following functions are available in this module:
\function{normcase()},
\function{normpath()},
\function{isabs()},
\function{join()},
\function{split()},
\function{isdir()},
\function{isfile()},
\function{walk()},
\function{exists()}.
For other functions available in \module{os.path} dummy counterparts
1996-07-20 23:20:58 -03:00
are available.