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
6891cd3a
Kaydet (Commit)
6891cd3a
authored
Haz 28, 2003
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
A few minor improvements
üst
6c71091f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
newtypes.tex
Doc/ext/newtypes.tex
+4
-3
No files found.
Doc/ext/newtypes.tex
Dosyayı görüntüle @
6891cd3a
...
...
@@ -723,8 +723,9 @@ Noddy_traverse(Noddy *self, visitproc visit, void *arg)
\end
{
verbatim
}
For each subobject that can participate in cycles, we need to call the
\cfunction
{
visit
}
function passed to the traversal method passing the
subobject and the extra argument passed to the traversal method.
\cfunction
{
visit
}
function, which is passed to the traversal method.
The
\cfunction
{
visit
}
function takes as arguments the subobject and
the extra argument
\var
{
arg
}
passed to the traversal method.
We also need to provide a method for clearing any subobjects that can
participate in cycles. We implement the method and reimplement the
...
...
@@ -757,7 +758,7 @@ Finally, we add the \constant{Py_TPFLAGS_HAVE_GC} flag to the class flags:
\end
{
verbatim
}
That's pretty much it. If we had written custom
\member
{
tp
_
alloc
}
or
\member
{
tp
_
free
}
slots, we'd need to modify the
n
for cyclic
-
garbage
\member
{
tp
_
free
}
slots, we'd need to modify the
m
for cyclic
-
garbage
collection. Most extensions will use the versions automatically
provided.
...
...
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