File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44# From SF bug #422121: Insecurities in dict comparison.
55
6- # Safety of code doing comparisons has been an historical Python waak spot.
7- # The problem is that comparison of structures in written in C *naturally*
6+ # Safety of code doing comparisons has been an historical Python weak spot.
7+ # The problem is that comparison of structures written in C *naturally*
88# wants to hold on to things like the size of the container, or "the
99# biggest" containee so far, across a traversal of the container; but
1010# code to do containee comparisons can call back into Python and mutate
@@ -71,9 +71,9 @@ def __init__(self, i):
7171 self .i = i
7272
7373 # An artificial hashcode is selected at random so that we don't
74- # have any systematic relationship between comparsion outcomes
74+ # have any systematic relationship between comparison outcomes
7575 # (based on self.i and other.i) and relative position within the
76- # hawh vector (based on hashcode).
76+ # hash vector (based on hashcode).
7777 self .hashcode = random .randrange (1000000000 )
7878
7979 def __hash__ (self ):
You can’t perform that action at this time.
0 commit comments