summaryrefslogtreecommitdiffstats
path: root/Doc/mac/libmacos.tex
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-02-24 11:02:36 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-02-24 11:02:36 (GMT)
commit5860dab40119c6cd6880ae96182c50642c280841 (patch)
treed2ca219b2e910c9cd7c8a3ff7224aa26f96626db /Doc/mac/libmacos.tex
parent937ca98e34bae0a0007c1cb728a90bdc9b315391 (diff)
downloadcpython-5860dab40119c6cd6880ae96182c50642c280841.zip
cpython-5860dab40119c6cd6880ae96182c50642c280841.tar.gz
cpython-5860dab40119c6cd6880ae96182c50642c280841.tar.bz2
Documented linkmodel and WMAvailable().
Diffstat (limited to 'Doc/mac/libmacos.tex')
-rw-r--r--Doc/mac/libmacos.tex30
1 files changed, 26 insertions, 4 deletions
diff --git a/Doc/mac/libmacos.tex b/Doc/mac/libmacos.tex
index dd1fb90..bb6b9c3 100644
--- a/Doc/mac/libmacos.tex
+++ b/Doc/mac/libmacos.tex
@@ -14,10 +14,20 @@ Note the capitalization of the module name; this is a historical
artifact.
\begin{datadesc}{runtimemodel}
-Either \code{'ppc'}, \code{'carbon'} or \code{'macho'}. This
-signifies whether this Python uses the classic (InterfaceLib style)
-runtime model, the Mac OS X compatible CarbonLib style or the Mac OS
-X-only Mach-O style.
+Either\code{'carbon'} or \code{'macho'}. This
+signifies whether this Python uses the Mac OS X and Mac OS 9 compatible
+CarbonLib style or the Mac OS
+X-only Mach-O style. In earlier versions of Python the value could
+also be \code{'ppc'} for the classic Mac OS 8 runtime model.
+\end{datadesc}
+
+\begin{datadesc}{linkmodel}
+The way the interpreter has been linked. As extension modules may be
+incompatible between linking models, packages could use this information to give
+more decent error messages. The value is one of \code{'static'} for a
+statically linked Python, \code{'framework'} for Python in a Mac OS X framework,
+\code{'shared'} for Python in a standard unix shared library and
+\code{'cfm'} for the Mac OS 9-compatible Python.
\end{datadesc}
\begin{excdesc}{Error}
@@ -136,3 +146,15 @@ built-in function \function{open()}. The object returned has file-like
semantics, but it is not a Python file object, so there may be subtle
differences.
\end{funcdesc}
+
+\begin{funcdesc}{WMAvailable}{}
+Checks wether the current process has access to the window manager.
+The method will return \code{False} if the window manager is not available,
+for instance when running on Mac OS X Server or when logged in via ssh,
+or when the current interpreter is not running from a fullblown application
+bundle. A script runs from an application bundle either when it has been
+started with \program{pythonw} in stead of \program{python} or when running
+as an applet.
+
+On Mac OS 9 the method always returns \code{True}.
+\end{funcdesc}