From: Tim Peters Date: Fri, 23 Aug 2002 20:06:42 +0000 (+0000) Subject: Comment repair. X-Git-Tag: v2.3c1~4315 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d06d03041b4b176953629858ae3a4f641e5a3c4f;p=python Comment repair. --- diff --git a/Lib/sets.py b/Lib/sets.py index c391545d4e..bd4a2b5d55 100644 --- a/Lib/sets.py +++ b/Lib/sets.py @@ -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)