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
482e82a0
Kaydet (Commit)
482e82a0
authored
Agu 10, 1998
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Corrected some spelling and one technical error.
üst
e7f39531
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
meta-vladimir.txt
Demo/metaclasses/meta-vladimir.txt
+5
-5
No files found.
Demo/metaclasses/meta-vladimir.txt
Dosyayı görüntüle @
482e82a0
...
...
@@ -42,10 +42,10 @@ programming model, examples and, perhaps, more popular terms.
>>> A # What is A?
<class __main__.A at 2023e360>
b) Class instan
c
iation
b) Class instan
t
iation
Creating an object with the properties defined in the class A is
called instan
ciation of the class A. After an instanc
iation of A, we
called instan
tiation of the class A. After an instant
iation of A, we
obtain a new object, called an instance, which has the properties
packaged in the class A.
...
...
@@ -172,10 +172,10 @@ programming model, examples and, perhaps, more popular terms.
>>> M # What is M?
<metaclass __main__.M at 2023e4e0>
b) Meta-class instan
c
iation
b) Meta-class instan
t
iation
Creating an object with the properties defined in the meta-class M is
called instan
ciation of the meta-class M. After an instanc
iation of M,
called instan
tiation of the meta-class M. After an instant
iation of M,
we obtain a new object, called an class, but now it is called also
a meta-instance, which has the properties packaged in the meta-class M.
...
...
@@ -241,7 +241,7 @@ programming model, examples and, perhaps, more popular terms.
() # No.
>>> N.__metabases__ # Does N have any supermetaclasses?
(<metaclass __main__.M at 2023e360>,) # Yes. It has a supermetaclass.
>>> N.__
bases__[0] == M
# Is it really the meta-class M?
>>> N.__
metabases__[0] == M
# Is it really the meta-class M?
1 # Yes, it is.
--------
...
...
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