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
748ff8bf
Kaydet (Commit)
748ff8bf
authored
Tem 02, 2014
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge
üst
b57d6a2f
11cda476
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
collections.abc.rst
Doc/library/collections.abc.rst
+1
-1
_collections_abc.py
Lib/_collections_abc.py
+1
-1
No files found.
Doc/library/collections.abc.rst
Dosyayı görüntüle @
748ff8bf
...
@@ -173,7 +173,7 @@ Notes on using :class:`Set` and :class:`MutableSet` as a mixin:
...
@@ -173,7 +173,7 @@ Notes on using :class:`Set` and :class:`MutableSet` as a mixin:
(2)
(2)
To override the comparisons (presumably for speed, as the
To override the comparisons (presumably for speed, as the
semantics are fixed), redefine :meth:`__le__` and
semantics are fixed), redefine :meth:`__le__` and
:meth:`__ge__`,
then the other operations will automatically follow suit.
then the other operations will automatically follow suit.
(3)
(3)
...
...
Lib/_collections_abc.py
Dosyayı görüntüle @
748ff8bf
...
@@ -183,7 +183,7 @@ class Set(Sized, Iterable, Container):
...
@@ -183,7 +183,7 @@ class Set(Sized, Iterable, Container):
methods except for __contains__, __iter__ and __len__.
methods except for __contains__, __iter__ and __len__.
To override the comparisons (presumably for speed, as the
To override the comparisons (presumably for speed, as the
semantics are fixed),
all you have to do is redefine __le__ and
semantics are fixed),
redefine __le__ and __ge__,
then the other operations will automatically follow suit.
then the other operations will automatically follow suit.
"""
"""
...
...
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