| 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 |
|
|---|
| 9 | This module provides access to MacOS specific functionality in the
|
|---|
| 10 | Python interpreter, such as how the interpreter eventloop functions
|
|---|
| 11 | and the like. Use with care.
|
|---|
| 12 |
|
|---|
| 13 | Note the capitalization of the module name; this is a historical
|
|---|
| 14 | artifact.
|
|---|
| 15 |
|
|---|
| 16 | \begin{datadesc}{runtimemodel}
|
|---|
| 17 | Always \code{'macho'}, from Python 2.4 on.
|
|---|
| 18 | In earlier versions of Python the value could
|
|---|
| 19 | also 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}
|
|---|
| 24 | The way the interpreter has been linked. As extension modules may be
|
|---|
| 25 | incompatible between linking models, packages could use this information to give
|
|---|
| 26 | more decent error messages. The value is one of \code{'static'} for a
|
|---|
| 27 | statically linked Python, \code{'framework'} for Python in a Mac OS X framework,
|
|---|
| 28 | \code{'shared'} for Python in a standard \UNIX{} shared library.
|
|---|
| 29 | Older Pythons could also have the value
|
|---|
|
|---|