[Python-checkins] python/dist/src/Lib sets.py,1.14,1.15
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
2002年8月23日 13:06:44 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv26687/python/Lib
Modified Files:
sets.py
Log Message:
Comment repair.
Index: sets.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sets.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** sets.py 23 Aug 2002 14:45:02 -0000 1.14
--- sets.py 23 Aug 2002 20:06:42 -0000 1.15
***************
*** 298,305 ****
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.
result = 0
for elt in self:
--- 298,305 ----
def _compute_hash(self):
# Calculate hash code for a set by xor'ing the hash codes of
! # 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: