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
aa726ba9
Kaydet (Commit)
aa726ba9
authored
Ock 04, 2001
tarafından
Neil Schemenauer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
__rcmp__ no longer gets called on instances. Remove the test for it.
üst
38f0223c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
test_compare.py
Lib/test/test_compare.py
+1
-12
No files found.
Lib/test/test_compare.py
Dosyayı görüntüle @
aa726ba9
...
@@ -29,19 +29,8 @@ class Cmp:
...
@@ -29,19 +29,8 @@ class Cmp:
def
__cmp__
(
self
,
other
):
def
__cmp__
(
self
,
other
):
return
cmp
(
self
.
arg
,
other
)
return
cmp
(
self
.
arg
,
other
)
class
RCmp
:
def
__init__
(
self
,
arg
):
self
.
arg
=
arg
def
__repr__
(
self
):
return
'<RCmp
%
s>'
%
self
.
arg
def
__rcmp__
(
self
,
other
):
return
cmp
(
other
,
self
.
arg
)
candidates
=
[
2
,
2.0
,
2L
,
2
+
0
j
,
[
1
],
(
3
,),
None
,
Empty
(),
Coerce
(
2
),
candidates
=
[
2
,
2.0
,
2L
,
2
+
0
j
,
[
1
],
(
3
,),
None
,
Empty
(),
Coerce
(
2
),
Cmp
(
2.0
)]
Cmp
(
2.0
),
RCmp
(
2L
)]
def
test
():
def
test
():
for
a
in
candidates
:
for
a
in
candidates
:
...
...
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