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
92024d1a
Kaydet (Commit)
92024d1a
authored
Kas 29, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clarify the description of the creation of an owned reference from an API
function. This closes SF bug #486657.
üst
99181ac6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
extending.tex
Doc/ext/extending.tex
+5
-5
No files found.
Doc/ext/extending.tex
Dosyayı görüntüle @
92024d1a
...
...
@@ -1291,11 +1291,11 @@ transferred with the reference or not.
Most functions that return a reference to an object pass on ownership
with the reference. In particular, all functions whose function it is
to create a new object, such as
\cfunction
{
PyInt
_
FromLong()
}
and
\cfunction
{
Py
_
BuildValue()
}
, pass ownership to the receiver. Even if
in
fact, in some cases, you don't receive a reference to a brand
new
object, you still receive ownership of the reference. For instance,
\cfunction
{
PyInt
_
FromLong()
}
maintains a cache of popular values and can
return a reference to a
cached item.
\cfunction
{
Py
_
BuildValue()
}
, pass ownership to the receiver. Even if
the object is not actually new, you still receive ownership of a
new
reference to that object. For instance,
\cfunction
{
PyInt
_
FromLong()
}
maintains a cache of popular values and can return a reference to a
cached item.
Many functions that extract objects from other objects also transfer
ownership with the reference, for instance
...
...
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