Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: cb6727e8118d24d0fb65ef60dec5f512a58c1f46 authored by Martin v. Löwis on 02 March 2008, 20:39:32 UTC
Prepare for 2.3.7c1.
Tip revision: cb6727e
libmac.tex
\section{\module{mac} ---
         Implementations for the \module{os} module}

\declaremodule{builtin}{mac}
  \platform{Mac}
\modulesynopsis{Implementations for the \module{os} module.}


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

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-OS9.

\section{\module{macpath} ---
         MacOS path manipulation functions}

\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
\module{os.path}\refstmodindex{os.path}.  Refer to the
\citetitle[../lib/lib.html]{Python Library Reference} for
documentation of \module{os.path}.

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
are available.
back to top