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
8c3e91ef
Kaydet (Commit)
8c3e91ef
authored
May 10, 2001
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Repair typos in comments.
üst
3918fb25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test_mutants.py
Lib/test/test_mutants.py
+4
-4
No files found.
Lib/test/test_mutants.py
Dosyayı görüntüle @
8c3e91ef
...
@@ -3,8 +3,8 @@ import random
...
@@ -3,8 +3,8 @@ import random
# From SF bug #422121: Insecurities in dict comparison.
# From SF bug #422121: Insecurities in dict comparison.
# Safety of code doing comparisons has been an historical Python w
a
ak spot.
# Safety of code doing comparisons has been an historical Python w
e
ak spot.
# The problem is that comparison of structures
in
written in C *naturally*
# The problem is that comparison of structures written in C *naturally*
# wants to hold on to things like the size of the container, or "the
# wants to hold on to things like the size of the container, or "the
# biggest" containee so far, across a traversal of the container; but
# biggest" containee so far, across a traversal of the container; but
# code to do containee comparisons can call back into Python and mutate
# code to do containee comparisons can call back into Python and mutate
...
@@ -71,9 +71,9 @@ class Horrid:
...
@@ -71,9 +71,9 @@ class Horrid:
self
.
i
=
i
self
.
i
=
i
# An artificial hashcode is selected at random so that we don't
# An artificial hashcode is selected at random so that we don't
# have any systematic relationship between compar
si
on outcomes
# have any systematic relationship between compar
is
on outcomes
# (based on self.i and other.i) and relative position within the
# (based on self.i and other.i) and relative position within the
# ha
w
h vector (based on hashcode).
# ha
s
h vector (based on hashcode).
self
.
hashcode
=
random
.
randrange
(
1000000000
)
self
.
hashcode
=
random
.
randrange
(
1000000000
)
def
__hash__
(
self
):
def
__hash__
(
self
):
...
...
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