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
9a053731
Kaydet (Commit)
9a053731
authored
Ara 05, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#4517: add "special method" glossary entry and clarify when __getattribute__ is bypassed.
üst
fe879e8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
glossary.rst
Doc/glossary.rst
+6
-0
datamodel.rst
Doc/reference/datamodel.rst
+1
-1
No files found.
Doc/glossary.rst
Dosyayı görüntüle @
9a053731
...
@@ -498,6 +498,12 @@ Glossary
...
@@ -498,6 +498,12 @@ Glossary
(subscript) notation uses :class:`slice` objects internally (or in older
(subscript) notation uses :class:`slice` objects internally (or in older
versions, :meth:`__getslice__` and :meth:`__setslice__`).
versions, :meth:`__getslice__` and :meth:`__setslice__`).
special method
A method that is called implicitly by Python to execute a certain
operation on a type, such as addition. Such methods have names starting
and ending with double underscores. Special methods are documented in
:ref:`specialnames`.
statement
statement
A statement is part of a suite (a "block" of code). A statement is either
A statement is part of a suite (a "block" of code). A statement is either
an :term:`expression` or a one of several constructs with a keyword, such
an :term:`expression` or a one of several constructs with a keyword, such
...
...
Doc/reference/datamodel.rst
Dosyayı görüntüle @
9a053731
...
@@ -2370,7 +2370,7 @@ the instance when looking up special methods::
...
@@ -2370,7 +2370,7 @@ the instance when looking up special methods::
True
True
In addition to bypassing any instance attributes in the interest of
In addition to bypassing any instance attributes in the interest of
correctness, implicit special method lookup
may also bypas
s the
correctness, implicit special method lookup
generally also bypasse
s the
:meth:`__getattribute__` method even of the object's metaclass::
:meth:`__getattribute__` method even of the object's metaclass::
>>> class Meta(type):
>>> class Meta(type):
...
...
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