Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
5860dab4
Kaydet (Commit)
5860dab4
authored
Şub 24, 2003
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Documented linkmodel and WMAvailable().
üst
937ca98e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
libmacos.tex
Doc/mac/libmacos.tex
+26
-4
No files found.
Doc/mac/libmacos.tex
Dosyayı görüntüle @
5860dab4
...
...
@@ -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}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment