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
c6c921a4
Kaydet (Commit)
c6c921a4
authored
Ock 26, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Py_AtExit(): Added brief note about the constraint on cleanup functions not
calling the Python API.
üst
25f1722d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
12 deletions
+18
-12
api.tex
Doc/api.tex
+9
-6
api.tex
Doc/api/api.tex
+9
-6
No files found.
Doc/api.tex
Dosyayı görüntüle @
c6c921a4
...
...
@@ -542,12 +542,15 @@ calls the standard \C{} library function \code{exit(0)}.
\end{cfuncdesc}
\begin{cfuncdesc}
{
int
}{
Py
_
AtExit
}{
void (*func) ()
}
Register a cleanup function to be called by
\code
{
Py
_
Finalize()
}
. The
cleanup function will be called with no arguments and should return no
value. At most 32 cleanup functions can be registered. When the
registration is successful,
\code
{
Py
_
AtExit
}
returns 0; on failure, it
returns -1. The cleanup function registered last is called first.
Each cleanup function will be called at most once.
Register a cleanup function to be called by
\cfunction
{
Py
_
Finalize()
}
.
The cleanup function will be called with no arguments and should
return no value. At most 32 cleanup functions can be registered.
When the registration is successful,
\cfunction
{
Py
_
AtExit()
}
returns
\code
{
0
}
; on failure, it returns
\code
{
-1
}
. The cleanup function
registered last is called first. Each cleanup function will be called
at most once. Since Python's internal finallization will have
completed before the cleanup function, no Python APIs should be called
by
\var
{
func
}
.
\end{cfuncdesc}
...
...
Doc/api/api.tex
Dosyayı görüntüle @
c6c921a4
...
...
@@ -542,12 +542,15 @@ calls the standard \C{} library function \code{exit(0)}.
\end{cfuncdesc}
\begin{cfuncdesc}
{
int
}{
Py
_
AtExit
}{
void (*func) ()
}
Register a cleanup function to be called by
\code
{
Py
_
Finalize()
}
. The
cleanup function will be called with no arguments and should return no
value. At most 32 cleanup functions can be registered. When the
registration is successful,
\code
{
Py
_
AtExit
}
returns 0; on failure, it
returns -1. The cleanup function registered last is called first.
Each cleanup function will be called at most once.
Register a cleanup function to be called by
\cfunction
{
Py
_
Finalize()
}
.
The cleanup function will be called with no arguments and should
return no value. At most 32 cleanup functions can be registered.
When the registration is successful,
\cfunction
{
Py
_
AtExit()
}
returns
\code
{
0
}
; on failure, it returns
\code
{
-1
}
. The cleanup function
registered last is called first. Each cleanup function will be called
at most once. Since Python's internal finallization will have
completed before the cleanup function, no Python APIs should be called
by
\var
{
func
}
.
\end{cfuncdesc}
...
...
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