]> granicus.if.org Git - python/commitdiff
Comment repair.
authorTim Peters <tim.peters@gmail.com>
Fri, 23 Aug 2002 20:06:42 +0000 (20:06 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 23 Aug 2002 20:06:42 +0000 (20:06 +0000)
Lib/sets.py

index c391545d4e43a7bf7c1a74445e3addcb3b85875f..bd4a2b5d5585261be58ee629564a15d51ed783ef 100644 (file)
@@ -297,10 +297,10 @@ class BaseSet(object):
 
     def _compute_hash(self):
         # Calculate hash code for a set by xor'ing the hash codes of
-        # the elements.  This algorithm ensures that the hash code
-        # does not depend on the order in which elements are added to
-        # the code.  This is not called __hash__ because a BaseSet
-        # should not be hashable; only an ImmutableSet is hashable.
+        # the elements.  This ensures that the hash code does not depend
+        # on the order in which elements are added to the set.  This is
+        # not called __hash__ because a BaseSet should not be hashable;
+        # only an ImmutableSet is hashable.
         result = 0
         for elt in self:
             result ^= hash(elt)