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
e071b001
Kaydet (Commit)
e071b001
authored
Nis 01, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bug #1462278: small fix in documentation of __op__ vs __rop__ methods
üst
23fd3d49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
ref3.tex
Doc/ref/ref3.tex
+9
-8
No files found.
Doc/ref/ref3.tex
Dosyayı görüntüle @
e071b001
...
@@ -2057,14 +2057,15 @@ exception is raised. But see the following exception:
...
@@ -2057,14 +2057,15 @@ exception is raised. But see the following exception:
\item
\item
Exception to the previous item: if the left operand is an instance of
Exception to the previous item: if the left operand is an instance of
a built-in type or a new-style class, and the right operand is an
a built-in type or a new-style class, and the right operand is an instance
instance of a proper subclass of that type or class, the right
of a proper subclass of that type or class and overrides the base's
operand's
\method
{__
rop
__
()
}
method is tried
\emph
{
before
}
the left
\method
{__
rop
__
()
}
method, the right operand's
\method
{__
rop
__
()
}
method
operand's
\method
{__
op
__
()
}
method. This is done so that a subclass can
is tried
\emph
{
before
}
the left operand's
\method
{__
op
__
()
}
method.
completely override binary operators. Otherwise, the left operand's
__
op
__
method would always accept the right operand: when an instance
This is done so that a subclass can completely override binary operators.
of a given class is expected, an instance of a subclass of that class
Otherwise, the left operand's
\method
{__
op
__
()
}
method would always
is always acceptable.
accept the right operand: when an instance of a given class is expected,
an instance of a subclass of that class is always acceptable.
\item
\item
...
...
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