source: trunk/essentials/dev-lang/python/Doc/mac/libmacos.tex

Last change on this file was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 3.4 KB
Line 
1\section{\module{MacOS} ---
2 Access to Mac OS interpreter features}
3
4\declaremodule{builtin}{MacOS}
5 \platform{Mac}
6\modulesynopsis{Access to Mac OS-specific interpreter features.}
7
8
9This module provides access to MacOS specific functionality in the
10Python interpreter, such as how the interpreter eventloop functions
11and the like. Use with care.
12
13Note the capitalization of the module name; this is a historical
14artifact.
15
16\begin{datadesc}{runtimemodel}
17Always \code{'macho'}, from Python 2.4 on.
18In earlier versions of Python the value could
19also be \code{'ppc'} for the classic Mac OS 8 runtime model or
20\code{'carbon'} for the Mac OS 9 runtime model.
21\end{datadesc}
22
23\begin{datadesc}{linkmodel}
24The way the interpreter has been linked. As extension modules may be
25incompatible between linking models, packages could use this information to give
26more decent error messages. The value is one of \code{'static'} for a
27statically linked Python, \code{'framework'} for Python in a Mac OS X framework,
28\code{'shared'} for Python in a standard \UNIX{} shared library.
29Older Pythons could also have the value