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
1fd26525
Kaydet (Commit)
1fd26525
authored
Mar 23, 2011
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #10771: Clarify that descriptors get used in an *owner* class or one of its parents.
üst
405a4717
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
datamodel.rst
Doc/reference/datamodel.rst
+5
-5
No files found.
Doc/reference/datamodel.rst
Dosyayı görüntüle @
1fd26525
...
@@ -1539,11 +1539,11 @@ Implementing Descriptors
...
@@ -1539,11 +1539,11 @@ Implementing Descriptors
^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^
The following methods only apply when an instance of the class containing the
The following methods only apply when an instance of the class containing the
method (a so-called *descriptor* class) appears in
the class dictionary of
method (a so-called *descriptor* class) appears in
an *owner* class (the
another new-style class (known as the *owner* class) or one of it
s
descriptor must be in either the owner's class dictionary or in the clas
s
d
escendants. In the examples below, "the attribute" refers to the attribute
d
ictionary for one of its parents). In the examples below, "the attribute"
whose name is the key of the property in the owner class' ``__dict__``.
refers to the attribute whose name is the key of the property in the owner
Descriptors can only be implemented as new-style classes themselves
.
class' :attr:`__dict__`
.
.. method:: object.__get__(self, instance, owner)
.. method:: object.__get__(self, instance, owner)
...
...
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